ChainableKtListExtensions<T> extension
- on
-
- KtList<
T>
- KtList<
Methods
-
onEach(
void action(T item)) → KtList< T> -
Available on KtList<
Performs the givenT> , provided by the ChainableKtListExtensions extensionaction
on each element. Use with cascade syntax to return self. -
onEachIndexed(
void action(int index, T item)) → KtList< T> -
Available on KtList<
Performs the given action on each element, providing sequential index with the element, and returns the collection itself afterwards.T> , provided by the ChainableKtListExtensions extension