isprefixof package:streamly-core

Returns True if the first stream is the same as or a prefix of the second. A stream is a prefix of itself.
>>> Stream.isPrefixOf (Stream.fromList "hello") (Stream.fromList "hello" :: Stream IO Char)
True