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


mapl

Function: mapl { [] fn -> }
file: 10-C-lists.muf
package: muf
status: alpha

The mapl function accepts a block of lists and a function, which must accept as many arguments as there are lists in the block. On the first call to the given function, it is passed the first cons cell (not element!) in each of the given lists. On the second call, it recieves the second cons cell from each list. This continues until one or more of the lists run out of elements. The fn should return no value, and mapl does not either: It is used purely for side-effects:

Stack: 
[ [ "a" "b" "c" ]l |   :: car , "\n" , ;   mapl
a
b
c
Stack: 

See section maplist.


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