file: 10-C-lists.muf package: muf status: alpha
This function produces a string representation of a list resembling the syntax one might use to type it in:
Stack: [ [ 'a' 'b' 'c' ]l [ "def" 12 ]l ]l printList Stack: "[ [ 'a' 'b' 'c' ]l [ "def" 12 ]l ]l"
It is currently implemented as:
: printList { $ -> $ } -> list
[ "[ "
list listfor e do{
e e cons? if printList else toDelimitedString fi
" "
}
"]l"
| ]join
;
Go to the first, previous, next, last section, table of contents.