iterate package:streaming-bytestring

iterate f x returns an infinite ByteStream of repeated applications -- of f to x:
iterate f x == [x, f x, f (f x), ...]
>>> R.stdout $ R.take 50 $ R.iterate succ 39
()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXY

>>> Q.putStrLn $ Q.take 50 $ Q.iterate succ '\''
()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXY
iterate f x returns an infinite ByteStream of repeated applications of f to x:
iterate f x == [x, f x, f (f x), ...]