IterableExtensions< T> extension
Operations on iterables.
- on
-
- Iterable<
T>
- Iterable<
- @Since("3.0")
Properties
- firstOrNull → T?
-
Available on Iterable<
The first element of this iterator, orT>, provided by the IterableExtensions extension null
if the iterable is empty.no setter -
indexed
→ Iterable<
(int, T)> -
Available on Iterable<
Pairs of elements of the indices and elements of this iterable.T>, provided by the IterableExtensions extension no setter - lastOrNull → T?
-
Available on Iterable<
The last element of this iterable, orT>, provided by the IterableExtensions extension null
if the iterable is empty.no setter - singleOrNull → T?
-
Available on Iterable<
The single element of this iterator, orT>, provided by the IterableExtensions extension null
.no setter
Methods
-
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT>, provided by the IterableExtensions extension index
of this iterable, ornull
.