Skip to content

Array.find is missing? #12

@j-panasiuk

Description

@j-panasiuk

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?

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions