next up previous contents index
Next: orbit Up: Stream Previous: interlacing   Contents   Index


map!


Usage

map! f
map!(f)(s)


Signature

map!: (T $\to$ T) $\to$ % $\to$ %


Parameter Type Description
f T $\to$ T a map
s % a stream


Returns

map!(f)(s) returns the stream [f(x) for x in s], while map!(f) returns the mapping $s \to$ [f(x) for x in s]. In both cases, the stream s is modified in place and no copy is made.



Manuel Bronstein 2004-06-28