Strings

There are two ways to create strings: syntax keys and ( and ) commands.

Syntax Keys

\asdf \xy ++ outln

OUTPUT:
asdfxy
\a gi outln
#ahenlo frend

OUTPUT:
henlo frend

Note that in order to properly use ID's, the ID must be at the beginning of a line. In addition, ID's will not be evaluated or even acknowledged unless retrieved via functions.

Parentheses Commands (Lambdas)

Unlike in most other languages, ( and ) are commands in lin.

( a asdf 5 9 ) outln

OUTPUT:
a asdf 5 9

Basically, the parentheses take whatever numbers/keys are parsed within the parentheses and joins them with spaces to form a new string.

Functions

Instead of having a dedicated function type, lin uses strings to serve the same purpose. ID's in conjunction with ID retrieval commands have the benefit of being cached automatically for later use; however, lambdas and backslashed keys are both more convenient in many cases.

\a ::: 5 a outln
#a 2^ 1+

OUTPUT:
26

results matching ""

    No results matching ""