Go to the first, previous, next, last section, table of contents.


listfor

Control-struct: list LISTFOR val [cons] do{ ... }
file: job.t
package: muf
status: alpha

The listfor loop sets val to a successive element of list on each iteration. The val value is stored back into the list at the end of each iteration, so you may use assignments to it to update the list. If cons is specified, it will be set to the appropriate cons before each iteraction.

Stack:
[ 'a' 'b' 'c' ]l listfor i do{ i , "\n" , }
'a'
'b'
'c'
Stack:

(Note that a special vecfor (say) is not needed, because foreach works on all native Muq objects.)


Go to the first, previous, next, last section, table of contents.