Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CCBV.{fold, fold_true}? #369

Open
favonia opened this issue May 16, 2021 · 1 comment
Open

Add CCBV.{fold, fold_true}? #369

favonia opened this issue May 16, 2021 · 1 comment

Comments

@favonia
Copy link
Contributor

favonia commented May 16, 2021

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 favonia changed the title Add CCBV.{exists, for_all, exists_true, for_all_true}? Add CCBV.{fold, fold_true}? May 17, 2021
@c-cube
Copy link
Owner

c-cube commented May 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants