gather : ('a -> bool) -> 'a list -> 'a list)
SYNOPSIS
Filters a list to the sublist of elements satisfying a predicate.
DESCRIBE
gather P l
applies
P
to every element of
l
, returning a list of those that satisfy
P
, in the order they appeared in the original list.
FAILURE
If
P x
fails for some element
x
of
l
.
COMMENTS
Identical to
filter
.
SEEALSO
Lib
,
filter
,
mapfilter
,
partition
HOL
Kananaskis 0