IterableExtenstion<E> extension
Extension methods for Iterable
- on
-
- Iterable<
E>
- Iterable<
Methods
-
distinctBy<
T> (T distinctBy(E e)) → Iterable< E> -
Available on Iterable<
Returns a distinct list of elements by the givenE> , provided by the IterableExtenstion extensiondistinctByfunction -
firstOrNull(
bool test(E element)) → E? -
Available on Iterable<
Returns the first element that satisfies the given predicateE> , provided by the IterableExtenstion extensiontestornullif no element satisfies the predicate. -
lastOrNull(
bool test(E element)) → E? -
Available on Iterable<
Returns the last element that satisfies the given predicateE> , provided by the IterableExtenstion extensiontestornullif no element satisfies the predicate.