file: 00-C-lists.muf package: muf status: alpha
The list function constructs a List from a given
set of arguments, using Lisp calling conventions:
Stack: [ 1 2 3 | list |pop --> lst ]pop Stack: lst first Stack: 1 lst second Stack: 1 2 lst third Stack: 1 2 3
See section ].
It is currently implemented as:
: list { [] -> [] }
nil -> result
do{
|length 0 = until
|pop result cons -> result
}
result |push
;
Go to the first, previous, next, last section, table of contents.