SCIterableBasics<E> extension
Utility extension SCmethods for the native Iterable class.
- on
-
- Iterable<
E>
- Iterable<
Methods
-
all(
bool test(E element)) → bool -
Available on Iterable<
Alias for IterableE> , provided by the SCIterableBasics extension.every. -
containsAll(
Iterable< E> other, {bool collapseDuplicates = true}) → bool -
Available on Iterable<
Returns true if every element inE> , provided by the SCIterableBasics extensionotheralso exists inthis. -
containsAny(
Iterable< E> other) → bool -
Available on Iterable<
ReturnsE> , provided by the SCIterableBasics extensiontrueifthiscontains at least one element also contained inother. -
forEachIndexed(
void funcIndexValue(int index, E element)) → void -
Available on Iterable<
Applies the functionE> , provided by the SCIterableBasics extensionfuncIndexValueto each element of this collection in iteration order. The function receives the element index as first parameterindexand theelementas the second parameter. -
none(
bool test(E element)) → bool -
Available on Iterable<
ReturnsE> , provided by the SCIterableBasics extensiontrueif no element ofthissatisfiestest. -
one(
bool test(E element)) → bool -
Available on Iterable<
ReturnsE> , provided by the SCIterableBasics extensiontrueif there is exactly one element ofthiswhich satisfiestest. -
sum(
num addend(E)) → num -
Available on Iterable<
Returns the sum of all the values in this iterable, as defined byE> , provided by the SCIterableBasics extensionaddend.