Returns the list of those elements that satisfy predicate.
predicate
Iterable<T> filter(bool Function(T t) predicate) => foldLeft([], (a, e) => predicate(e) ? [...a, e] : a);