i_apply: Apply a function to each element of an iterator.
Description
i_apply(obj, f) returns the iteror that applies f to
each element of the given iterable obj. It is an iterator
equivalent of lapply.
Usage
i_apply(obj, f, ...)
Value
An iteror.
Arguments
obj
an iterable.
f
a function
...
Additional arguments will be passed along to f
See Also
To apply a function of multiple arguments to multiple
iterators, see i_map. To split an array over margins (like
iterators::i_apply use iteror(obj, by=MARGIN