Extension<E> extension
Utility extension methods for operations on Iterables.
- on
-
- Iterable<
E>
- Iterable<
Methods
-
enumerate(
) → Iterable< (int, E)> -
Available on Iterable<
Models the PythonE> , provided by the Extension extensionenumeratefunction. Returns a new iterable of tuples where the first element is the index and the second element is the value. -
skipLast(
int count) → Iterable< E> -
Available on Iterable<
Returns a new iterable containing the elements of this iterable. During iteration, the lastE> , provided by the Extension extensioncountelements are dropped. Ifcountis greater than the number of elements in this iterable, an empty iterable is returned.