Closed raboof closed 4 years ago
yes, that would be useful!
Should we rename find
to find_exn
and change find
to return an option? Or do we care deeply about backwards compatibility?
don't worry too much about backward compatibililty, we will just need to add some version constraints in the opam-repository for the next release.
Wouldn't it make sense to have a variation on 'find' that returns an option instead of raising an error when no element is found?