# elemIndices

The elemIndices function extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order.
```>>> elemIndices 'o' "Hello World"
[4,7]
```
O(n) The elemIndices function extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order. This implementation uses memchr(3).
O(n) The elemIndices function extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order.
O(n) The elemIndices function extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order. This implementation uses memchr(3).
O(n) The elemIndices function extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order.
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
Outputs the indices of all elements that match the given element
Stream all indices whose elements match the given Word8
O(n) The elemIndices function extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order.
Find all the indices where the value of the element in the stream is equal to the given value.
```elemIndices a = findIndices (== a)
```
The elemIndices function extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order. Beware: elemIndices x xs will diverge if any suffix of xs does not contain x.
Returns all indices of the given element in the list. Since 0.7.0.0
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
```>>> elemIndices 1 \$ unsafeFromList [1,2,3,1]
[0,3]
```
```>>> elemIndices 0 \$ unsafeFromList [1..3]
[]
```
O(n). Extends elemIndex, by returning the indices of all elements equal to the query element, in ascending order.
```>>> elemIndices 1 \$ slist [1,1,1,2,2,4,5,1,9,1]
Slist {sList = [0,1,2,7,9], sSize = Size 5}

>>> take 5 \$ elemIndices 1 \$ repeat 1
Slist {sList = [0,1,2,3,4], sSize = Size 5}
```
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
```>>> elemIndices 1 \$ unsafeFromList [1,2,3,1]
[0,3]
```
```>>> elemIndices 0 \$ unsafeFromList [1..3]
[]
```
O(n) Yield the indices of all occurences of the given element in ascending order. This is a specialised version of findIndices.
```>>> elemIndices 1 \$ unsafeFromList @Vector [1,2,3,1]
[0,3]
```
```>>> elemIndices 0 \$ unsafeFromList @Vector [1..3]
[]
```