IterableExtensions<T extends Comparable<T>> extension

Extension on Iterable to provide additional properties and methods for lists containing elements that implement Comparable.

on

Methods

biggestOccurrence() → T?

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

Finds the biggest occurrence in the list.
leastOccurrences() → (T, int)?

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

Find the most common value in the list.
mostOccurrences() → (T, int)?

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

Finds the most common value in the list.
smallestOccurrence() → T?

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

Finds the smallest occurrence in the list.