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