filter

[procedure] filter pred list

SRFI-1: Return all the elements of list that satisfy predicate pred. The list is not disordered -- elements that appear in the result list occur in the same order as they occur in the argument list. The returned list may share a common tail with the argument list. The dynamic order in which the various applications of pred are made is not specified.

See also partition, remove, filter!.

[generic] filter pred coll

Gauche extends this to take arbitrary collection (with gauche.collection module).