Applies a function to each element of a list, producing a list of the results
In broad terms, what does the filter
function do?
Selects elements of a list that satisfy a predicate.
In Haskell, what is a "section". (Ok to just show an example of one.)
Short answer:
(+1)
Long answer: A partial application created by enclosing a binary operator and either operand in parentheses.
EC: Write an expression whose value is bottom.
length [1..]