findIndices

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]
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.
The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
O(n) The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
Outputs the indices of all elements that satisfied the predicate
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.
Stream all indices whose elements satisfy the given predicate
Find locations of non-overlapping instances of needle within haystack.
Returns the indices of all elements satisfying the function
Find all the indices where the element in the stream satisfies the given predicate.
findIndices = fold Fold.findIndices
The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
O(n) The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
O(n) The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
O(n) The findIndices function extends findIndex, by returning the indices of all elements satisfying the predicate, in ascending order.
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. Beware: findIndices p xs will diverge if all the elements of any suffix of xs fails to satisfy p.
Returns the index of the latest element if the element satisfies the given predicate.