Macaulay2 » Documentation
Packages » Macaulay2Doc :: Net | Net
next | previous | forward | backward | up | index | toc

Net | Net -- join strings or nets

Synopsis

Description

s|t -- concatenates strings or nets horizontally.

The result is a string if the arguments are all strings, otherwise it is a net. The baselines of the nets are aligned.
i1 : "abc" | "def"

o1 = abcdef
i2 : x = "abc" || "ABC"

o2 = abc
     ABC
i3 : x|"x"|x

o3 = abcxabc
     ABC ABC
If one of the two arguments is an integer, it is converted to a string first.
i4 : "t = " | 333

o4 = t = 333

See also

Ways to use this method: