elemIndex -package:utf8-string -is:exact -package:storablevector package:streamly

Returns the first index where a given value is found in the stream.
elemIndex a = Stream.findIndex (== a)