YOU ARE VIEWING ARCHIVAL DOCUMENTATION FOR ioL VERSIONS 0.9x. Go to doc.iol.science for the latest version.
ioL

Programming manual (doc0.iol.science)



<join>

join is used to combine a list of elements into a single formatted text string.

This short-lived tag evaluates input assigned to its default field, and returns output. It does not yield an object.

It accepts a list of data elements and combines them together, with an optional delimiter between each element.

Fields

The default field should be assigned a list of data elements (e.g. a reference to a vector).

A named field, delim, can also be defined on this tag. This field accepts a single text value. If set, the delim text string will be inserted as a separator between each of the combined elements in the output result.

Example

<var:vector 1,10,true,{Hey!}>       <! define a vector object named vec with mixed data elements !>

<putln <join var>>                  <! outputs {110trueHey!} back to the running program or TTY !>

<putln <join var delim={ and }>     <!outputs: {1 and 10 and true and Hey!} !>