isInfixOf package:streamly

Returns True if the first stream is an infix of the second. A stream is considered an infix of itself.
Stream.isInfixOf (Stream.fromList "hello") (Stream.fromList "hello" :: SerialT IO Char)
True Space: O(n) worst case where n is the length of the infix. Pre-release Requires Storable constraint