partition<A> method
Implementation
Tuple2<F, F> partition<A>(F fa, bool f(A a)) =>
foldRight(fa, tuple2(empty(), empty()), (A a, acc) => f(a)
? acc.map1((xs) => prependElement(xs, a))
: acc.map2((xs) => prependElement(xs, a)));