Skip to content

add indexedFilterMap #40

@lue-bird

Description

@lue-bird

Implement indexedFilterMap : (Int -> a -> Maybe b) -> ... as a more performant and convenient alternative to

Array.indexedMap Tuple.pair
    |> Array.filterMap (\( i, el ) -> ...)

a "findAll" would then be trivial

Array.filterMapIndexed (\i el -> ...)

Related: #12

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