elemIndices package:streamly-core

Returns the index of the latest element if the element matches the given value. Definition:
>>> elemIndices a = Fold.findIndices (== a)
Find all the indices where the value of the element in the stream is equal to the given value.
>>> elemIndices a = Stream.findIndices (== a)