elm-community / elm-community/array-extra

Array.find is missing?

Open
#12 2 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.