IterableExt<E> extension
- on
-
- Iterable<
E>
- Iterable<
Methods
-
containsByCondition<
T> (T t, dynamic f(E e)) → bool -
elementAtOrNull(
int index) → E? -
filter(
bool f(E e)) → List< E> -
firstOrNull(
{bool f(E e)?}) → E? -
forIndex(
dynamic f(E e, int index)) → void -
groupBy<
T> (T f(E e)) → Map< T, List< E> > - 按条件分组数据
-
joinTo(
String f(E e), {String separator = ","}) → String -
lastOrNull(
{bool f(E e)?}) → E? -
mapIndex<
T> (T f(int index, E e)) → List< T> -
maxBy<
R extends Comparable> (R f(E e)) → E? -
minBy<
R extends Comparable> (R f(E e)) → E? -
sumBy(
num f(E e)) → num -
toMap<
K, V> (K keySelector(E e), V valueTransform(E e)) → Map< K, V>