isInfixOf package:streamly-core

Returns True if the first stream is an infix of the second. A stream is considered an infix of itself.
>>> s = Stream.fromList "hello" :: Stream IO Char

>>> Stream.isInfixOf s s
True
Space: O(n) worst case where n is the length of the infix. Pre-release Requires Storable constraint