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

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