elm-community / elm-community/array-extra
Array.find is missing?
Open
enhancement
no-use-case-provided
- Dominant language
- Elm
- Stars
- 10
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
I'm curious why there is no `find` function either in core or here in extras?
I literally checked both three times, because I thought it's just me being blind
Wouldn't that be a useful addition?
```elm
find : (a -> Bool) -> Array a -> Maybe a
```
Also it would be natural to have its `findLast` counterpart
Maybe even call `find` as `findFirst` for clarity?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.