filter

filter(x, test)

Try it yourself:

See also:
All functions