change the type of the predicate functions, to allow more efficient impl
of find(),findLast() and
indexesWhere(),firstIndexWhere(),lastIndexWhere()