Returns a vector of the items in coll for which (pred item) returns logical true. pred must be free of side-effects.