file: 00-C-lists.muf package: muf status: alpha
] function constructs a List from a given
set of arguments:
Stack: [ 1 2 3 ]l --> lst Stack: lst first Stack: 1 lst second Stack: 1 2 lst third Stack: 1 2 3
This is the closest MUF comes to Lisp's
'(1 2 3)
notation for quoted lists.
Note that no '|' is used, that such lists may be nested, and that (unlike quoted lists in Lisp) all the arguments are evaluated, and may in fact be arbitrary expressions.
Thus, to construct a list of symbols, you must do
Stack: [ 'a 'b 'c ]
instead of merely
Stack: [ a b c ]
See section list.
]v function builds a vector rather
than a list.
build vectors specialized to containing (respectively) shorts, ints,
floats and doubles.
Go to the first, previous, next, last section, table of contents.