FpdartOnList<T> extension

Functional programming functions on a mutable dart Iterable using fpdart.

on

Methods

dropWhileRight(bool test(T t)) Iterable<T>
Remove all elements starting from the last as long as test returns true.
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 the index of each mapped element in the combine function.
takeWhileRight(bool test(T t)) Iterable<T>
Extract all elements starting from the last as long as test returns true.