findIndices package:rio
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.
>>> findIndices (`elem` "aeiou") "Hello World!"
[1,4,7]
O(n) Yield the indices of elements satisfying the predicate in
ascending order.
O(n) Yield the indices of elements satisfying the predicate in
ascending order.
O(n) Yield the indices of elements satisfying the predicate in
ascending order.
O(n) Yield the indices of elements satisfying the predicate in
ascending order.
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.