chickadee » srfi-1 » filter

filter pred listprocedure

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.

(filter even? '(0 7 8 8 43 -4)) => (0 8 8 -4)