Return a pair of lists. The first list contain the elements of
xs for which
true and the second list contain the elements of
f should accept one argument and return a single value. It should not modify
The elements of the returned lists appear in the same order as they appeared in the original list.
let os:es = partition(is_odd, [1, 2, 3, 4, 5]) os // [1, 3, 5] es // [2, 4]
Core Module Index | Contents