elemIndex package:streamly

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