Modified any() and all() to return the first/last passing element in the sequence, instead of a boolean. After casting the result to a boolean, the semantics remain the same, however.