IterablePureExtensions<E> extension
Methods
-
containsAll(Iterable<E> other)
→ bool
-
Returns true if the specified value is equal to at least one element of the given list;
false otherwise
-
containsAny(Iterable<E> other)
→ bool
-
Checks whether any element of this iterable is in
other
iterable.
-
containsEvery(Iterable<E> other)
→ bool
-
Checks whether every element of this iterable is in
other
iterable.
-
elementAtOrNull(int index)
→ E?
-
Returns the
index
th element or null if it not exist.
-
foldWithNext<V>(V initialValue, V combiner(V previousValue, E current, E next))
→ V
-
Reduces a collection to a single value by iteratively combining previous and current
element of the collection with an existing value
-
generateBook({int? valuesPerPage, int? numberOfPages})
→ Map<int, List<E>>
-
-
generateMap<K, V>(MapEntry<K, V> generator(E))
→ Map<K, V>
-
Generate the map by collection.
-
joinBy(E generator(int index))
→ Iterable<E>
-
Concatenates the elements given by function.
-
joinElement(E element)
→ Iterable<E>
-
Concatenates the elements.
-
replaces(Map<E, E> replacements)
→ Iterable<E>
-
replace the old elements contained in the map with new ones.
-
toMap()
→ Map<int, E>
-
-
whereNotContains(Iterable<E> elements)
→ Iterable<E>
-
Returns a iterable without
elements