Arc Cross Reference


[procedure] map fn seq ...

Like scheme:map, except that seq may be a string, in which case fn is applied on each character If any of seqs is a string, fn must return a character and the result becomes a string consists of the returned values of fn.

Looking at the usage of map in Arc's source, it seems that Arc's map guarantees fn is applied in the order of elements in seq (Scheme doesn't).

Note: in arc0, map to string uses "allocate and set" code which is restart unsafe.

See also: map1, scheme:map-to.