FpdartOnList<T> extension
Functional programming functions on a mutable dart Iterable using fpdart
.
- on
-
- List<
T>
- List<
Methods
-
dropWhileRight(
bool test(T t)) → Iterable< T> -
Remove all elements starting from the last as long as
test
returnstrue
. -
foldRight<
B> (B initialValue, B combine(B previousValue, T element)) → B - Fold this List into a single value by aggregating each element of the list from the last to the first.
-
foldRightWithIndex<
B> (B initialValue, B combine(B previousValue, T element, int index)) → B -
Same as
foldRight
but provides also theindex
of each mapped element in thecombine
function. -
takeWhileRight(
bool test(T t)) → Iterable< T> -
Extract all elements starting from the last as long as
test
returnstrue
.