next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: Net | Net

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