GeneralIterableExtensions<T> extension

on

Methods

containsAll(Iterable<T> other) bool

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

Returns true if this iterable contains all elements from other.
countWhere(bool predicate(T)) int

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

Counts elements that satisfy the given predicate.
leastOccurrences() → (T, int)?

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

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

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

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

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

Returns a random element from this iterable.