(quote |,String,String)

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

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

o2 = abc
     ABC

o2 : Net
i3 : x|"x"|x

o3 = abcxabc
     ABC ABC

o3 : Net

If one of the two arguments is an integer, it is converted to a string first.

i4 : "t = " | 333

o4 = t = 333

o4 : String

See also |, horizontalJoin, and Net.


topindexpreviousupnext