Next: Searching for an element
Up: Higher Order Functions
Previous: Converting the `map' function:
This abstraction takes a predicate function and a list as its two
arguments. The result returned by `filter' is a new list
containing all elements of the original list, for which the predicate
function returns the value `true'.
Selecting elements from a given list: `filter'
Georg P. Loczewski