ocaml-containers icon indicating copy to clipboard operation
ocaml-containers copied to clipboard

Add CCBV.{fold, fold_true}?

Open favonia opened this issue 4 years ago • 1 comments

I wonder if CCBV.fold_true could earn its place in the library? I found it quite convenient when implementing search algorithms, but perhaps others would know other interesting uses. A generic folding seems to fit the library, and is present in the bitv library.

EDIT: after some major refactoring, the short-circuiting CCBV.for_all_true seems to be less useful.

favonia avatar May 16 '21 21:05 favonia

Sounds useful, yes :). There is already the iter equivalent of it.

c-cube avatar May 17 '21 15:05 c-cube