Nets are used extensively for such things as formatting polynomials for display on ascii terminals. Use net to obtain such nets directly.
i1 : R = ZZ[x,y]; |
i2 : (x+y)^2 |
i3 : n = net oo |
i4 : peek n |
i5 : x = "a" || "bb" || "ccc" |
i6 : x^2 |
i7 : {x,x^1,x^2} |
i8 : x^2 | "-------" | x |
i9 : width x, height x, depth x |
i10 : netRows x |
i11 : peek oo |