where
Removes list elements based on a predicate.
Description
The where
function removes all elements of a list for which a predicate
evaluates to false
.
xs: list
A list of values.
capture: field
The name of each list element in each predicate.
predicate: bool
The predicate evaluated for each list element.