Open danielo515 opened 1 year ago
Actually it would be really useful to have a variant of these findIndex/i functions that does indeed return an option, similarly to find, if we are encouraged to use pattern matching instead of the ternary operator.
These APIs will be superseded by rescript-core functionality: https://github.com/rescript-association/rescript-core
These APIs will be superseded by rescript-core functionality: https://github.com/rescript-association/rescript-core
That doesn't mean this API should be abandoned, does it?
https://rescript-lang.org/docs/manual/latest/api/js/array#findindexi
If it returns an int, then it does not return Some | None. Or the signature is wrong or the description is wrong.