IterableExtension<E> extension

An Iterable extension.

on

Methods

closestTo(E target, num difference(E a, E b)) → E

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

The closest element E to target.
compact({required E nextValue(E current), required Comparator<E> compare}) Iterable<Range<E>>

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

Compacts this Iterable into a list of Ranges based on nextValue and compare.