IterableExtension<T> extension

on

Methods

distinctBy<R>(R selector(T element)) Iterable<T>

Available on Iterable<T>, provided by the IterableExtension extension

Returns a new lazy Iterable containing only elements from the collection having distinct keys returned by the given selector function.
mapNotNull<R>(R? transform(T element)) Iterable<R>

Available on Iterable<T>, provided by the IterableExtension extension

sortedByDescending(Comparable selector(T element)) Iterable<T>

Available on Iterable<T>, provided by the IterableExtension extension