[top][index]
search for:

Net | Net -- join strings or nets

Synopsis:

  • Operator: | -- a binary operator
  • Input:
  • an instance of class Net.
  • an instance of class Net.
  • Output:
  • an instance of class Net.
  • 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


    [top][index]
    search for: