keep

docblock
keep(x, p)

Keep the elements x_i of collection x such that p(x_i) is true.