remp(f, xs)
Return a list containing the elements of xs
for which the predicate f
returns false
.
The predicate f
should accept one argument and return a single value. It should not modify xs
.
remp(is_odd, [1, 2, 3, 4, 5])
// [2, 4]