Returns a new Iterable of the same type with values passed through a
mapper
function.
Seq({ a: 1, b: 2 }).map(x => 10 * x)
// Seq { a: 10, b: 20 }
An iterator of this Iterable
's values.
Note: this will return an ES6 iterator which does not support Immutable JS sequence algorithms. Use valueSeq
instead, if this is what you want.
Generated using TypeDoc
The
sideEffect
is executed for every entry in the Iterable.Unlike
Array#forEach
, if any call ofsideEffect
returnsfalse
, the iteration will stop. Returns the number of entries iterated (including the last iteration which returned false).