We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
does CCList need this function:
fun f -> function | [] -> None | h::t -> Some (CCList.fold_left f h t)
? i've seen this called 'reduce'. it's just a minor specialization of fold but is quite frequent in my personal experience.
The text was updated successfully, but these errors were encountered:
Why not, in which case I'd have reduce and reduce_exn I suppose. I'd rather reach for that when I already know the list is not empty.
reduce
reduce_exn
Sorry, something went wrong.
CCList: add reduce function (resolves c-cube#305)
21711d9
CCList: add reduce function (resolves #305)
d5f2c6b
Successfully merging a pull request may close this issue.
does CCList need this function:
? i've seen this called 'reduce'. it's just a minor specialization of fold but is quite frequent in my personal experience.
The text was updated successfully, but these errors were encountered: