Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » strings and nets » Net » Net | Net
next | previous | forward | backward | up | index | toc

Net | Net -- join strings or nets

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:

  • Net | Net -- join strings or nets
  • String | String
  • String | ZZ
  • ZZ | String

The source of this document is in Macaulay2Doc/ov_strings.m2:551:0.