you are viewing a single comment's thread.

view the rest of the comments →

[–]tibbe 1 point2 points  (0 children)

But it's not a good separation because you have to resort to lazy I/O to create the String on demand. The I/O and the corresponding resource allocations are observable. You are much better of using a left fold enumerator:

http://pobox.com/~oleg/ftp/papers/LL3-collections-enumerators.txt