IterableExtenstion<E> extension

Extension methods for Iterable

on

Methods

distinctBy<T>(T distinctBy(E e)) Iterable<E>

Available on Iterable<E>, provided by the IterableExtenstion extension

Returns a distinct list of elements by the given distinctBy function
firstOrNull(bool test(E element)) → E?

Available on Iterable<E>, provided by the IterableExtenstion extension

Returns the first element that satisfies the given predicate test or null if no element satisfies the predicate.
lastOrNull(bool test(E element)) → E?

Available on Iterable<E>, provided by the IterableExtenstion extension

Returns the last element that satisfies the given predicate test or null if no element satisfies the predicate.