Next: Searching for an element
Up: Higher Order Functions
Previous: Converting the `map' function:
Contents
Index
Selecting elements from a given list: `filter'
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'.
Georg P. Loczewski
2004-03-05