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]