previous | index | next

Questions About List Filtering

Q: What's the result of filtering an empty list?

A: The empty list.

Q: If the head of a nonempty list satisfies the predicate, what should filter return?
(Hint: Answer in terms of the head and the tail.)

A:


previous | index | next