memp(p, xs)
Return the first tail of the list xs
for whose head
the predicate p
return true
. If no such element,
return false
.
The predicate should accept one argument and return a single value. It should not modify xs
.Examples: