elem package:streamly

Determine whether an element is present in the stream.
elem = Stream.fold Fold.elem
Returns the first index where a given value is found in the stream.
elemIndex a = Stream.findIndex (== a)
Find all the indices where the value of the element in the stream is equal to the given value.
elemIndices a = findIndices (== a)
Determine whether an element is not present in the stream.
notElem = Stream.fold Fold.length