partition

Takes a list and returns two lists: one that satisfies a predicate, and one that doesn’t.  This is very much like choose, except this function also returns the elements that did not match the predicate.

Exported from

Arguments

predAn instance of <function>.
seqAn instance of <sequence>.

Values

winnersAn instance of <list>.  The list of elements that satisfy pred.
losersAn instance of <list>.  The list of elements that do not.
Returns those elements of a sequence that satisfy a predicate.
Sequence-Utilities, written by Matthias Hölzl, provides common or oft-used operations performed on <sequence>s.
The class of objects that can be applied to arguments.
The class of collections whose keys are consecutive integers starting from zero.
The class of linked lists.