VxIterableBasics<E> extension

Utility extension methods for the native Iterable class.

on

Methods

all(bool test(E element)) bool

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

Alias for Iterable.every.
containsAll(Iterable<E> other, {bool collapseDuplicates = true}) bool

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

Returns true if every element in other also exists in this.
containsAny(Iterable<E> other) bool

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

Returns true if this contains at least one element also contained in other.
none(bool test(E element)) bool

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

Returns true if no element of this satisfies test.
one(bool test(E element)) bool

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

Returns true if there is exactly one element of this which satisfies test.
sum(num addend(E)) num

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

Returns the sum of all the values in this iterable, as defined by addend.