@NonNull static fun <A : Any!, B : Any!> lazyMap(@NonNull iterable: MutableIterable<A>, @NonNull mapper: (A) -> B): MutableIterable<B>
Returns a view containing the result of applying mapper
to each element of iterable
.
iterable
- MutableIterable<A>: elements that should be mapped with the mapping function
mapper
- (A) -> B: function that performs mapping of elements
- type of the elements of given iterable
- type of the elements of the returned iterable
Return
MutableIterable<B>: iterable of mapped elements