Folds all values in range based on a predicate.
The function to use for folding.
The range to fold.
Return value of F after folding.
See Implementation
Folds all values in range based on a predicate.