IntIterableExtensions extension

NOTE: Dart’s type system doesn’t consider int to be a subtype of Comparable<int>, even though int does implement Comparable<num>

on

Methods

leastOccurrences() → (int, int)?

Available on Iterable<int>, provided by the IntIterableExtensions extension

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

Available on Iterable<int>, provided by the IntIterableExtensions extension

find the most common value in the list.