findIndices package:rio

O(n) The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.

Examples

>>> findIndices (`elem` "aeiou") "Hello World!"
[1,4,7]
>>> findIndices (\l -> length l > 3) ["a", "bcde", "fgh", "ijklmnop"]
[1,3]
findIndicesL p finds all indices of elements that satisfy p, in ascending order.
findIndicesR p finds all indices of elements that satisfy p, in descending order.