void retainWhere(bool test(E element))