IndexedIterableExtension<T> extension
Adds functionality to iterable
map2 and map3 are the same as map but with the index given to you in the transformer
forEach2 and forEach3 are the same as forEach but with the index given to you in the transformer
- on
-
- Iterable<
T>
- Iterable<
Methods
-
forEach2<
Y> (void transformer(T value, int index)) → void -
Available on Iterable<
normal forEach with the current index given to you in the transformerT> , provided by the IndexedIterableExtension extension
forEach2 is the same as forEach but with the index given to you in the transformer -
forEach3<
Y> (void transformer(T value, int index, Iterable< T> list)) → void -
Available on Iterable<
foreach with the iterable being looped given to you in the transformer.T> , provided by the IndexedIterableExtension extension
forEach3 is the same as forEach but with the index given to you in the transformer -
map2<
Y> (Y transformer(T value, int index)) → Iterable< Y> -
Available on Iterable<
normal map function with the current index given to you in the transformerT> , provided by the IndexedIterableExtension extension
map2 is the same as map but with the index given to you in the transformer -
map3<
Y> (Y transformer(T value, int index, Iterable< T> list)) → Iterable<Y> -
Available on Iterable<
map an iterable with the iterable given to you in the transformerT> , provided by the IndexedIterableExtension extension
map3 is the same as map but with the index given to you in the transformer