TIterable<T> extension
- on
-
- Iterable<
T>
- Iterable<
Properties
- firstOr → T?
-
Available on Iterable<
T> , provided by the TIterable extensionno setter - lastIndex → int
-
Available on Iterable<
Returns the last index of the iterable.T> , provided by the TIterable extensionno setter -
list
→ List<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter - middleIndex → int
-
Available on Iterable<
Returns the middle index of the iterable.T> , provided by the TIterable extensionno setter - mostCommon → T?
-
Available on Iterable<
T> , provided by the TIterable extensionno setter -
notNull
→ Iterable<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter -
set
→ Set<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter -
unique
→ Iterable<
T> -
Available on Iterable<
T> , provided by the TIterable extensionno setter
Methods
-
add(
T element) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
addAll(
Iterable< T> elements) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
addAllFirst(
Iterable< T> elements) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
addFirst(
T element) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
asKeys<
R> (R f(T)) → Map< T, R> -
Available on Iterable<
Returns a new Map where the values are used as keys in a map.T> , provided by the TIterable extension -
asValues<
R> (R f(T)) → Map< R, T> -
Available on Iterable<
Returns a new Map where the values are used as values in a map.T> , provided by the TIterable extension -
chunked(
int chunkSize) → Iterable< List< T> > -
Available on Iterable<
T> , provided by the TIterable extension -
deduplicated(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with deduplicated elements.T> , provided by the TIterable extension -
deduplicatedList(
) → List< T> -
Available on Iterable<
Returns a new List with deduplicated elements.T> , provided by the TIterable extension -
diff(
Iterable< T> other) → Iterable<T> -
Available on Iterable<
T> , provided by the TIterable extension -
groupBy<
M> (M grouper(T)) → Map< M, List< T> > -
Available on Iterable<
T> , provided by the TIterable extension -
mapIndexed<
V> (V f(T value, int index)) → Iterable< V> -
Available on Iterable<
T> , provided by the TIterable extension -
mapList<
R> (R f(T)) → List< R> -
Available on Iterable<
Returns a new List with mapped elements.T> , provided by the TIterable extension -
middleValue(
) → T? -
Available on Iterable<
Returns the middle element of the iterable.T> , provided by the TIterable extension -
occurrences(
) → Map< T, int> -
Available on Iterable<
Returns a new Map with the number of occurrences of each element.T> , provided by the TIterable extension -
reduceOr(
T or, T combine(T, T)) → T -
Available on Iterable<
T> , provided by the TIterable extension -
reversed(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with reversed elements.T> , provided by the TIterable extension -
reversedList(
) → List< T> -
Available on Iterable<
Returns a new List with reversed elements.T> , provided by the TIterable extension -
select(
bool test(T)) → T? -
Available on Iterable<
T> , provided by the TIterable extension -
selectLast(
bool test(T)) → T? -
Available on Iterable<
T> , provided by the TIterable extension -
shuffled(
) → Iterable< T> -
Available on Iterable<
Returns a new Iterable with shuffled elements.T> , provided by the TIterable extension -
shuffledList(
) → List< T> -
Available on Iterable<
Returns a new List with shuffled elements.T> , provided by the TIterable extension -
skip(
int n) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension -
softMap<
R> (R? f(T)) → Iterable< R> -
Available on Iterable<
Returns a new Iterable with mapped elements that are not null.T> , provided by the TIterable extension -
softMapList<
R> (R? f(T)) → List< R> -
Available on Iterable<
Returns a new List with mapped elements that are not null.T> , provided by the TIterable extension -
sorted(
[int compare(T, T)?]) → List< T> -
Available on Iterable<
Returns a new List with sorted elements.T> , provided by the TIterable extension -
weave(
Iterable< T> other) → Iterable<T> -
Available on Iterable<
Weaves two iterables together into a new Iterable alternating elements.T> , provided by the TIterable extension -
whereIndex(
bool test(T value, int index)) → Iterable< T> -
Available on Iterable<
T> , provided by the TIterable extension