[Haskell-cafe] A round of golf

Ketil Malde ketil at malde.org
Fri Sep 19 06:40:03 EDT 2008


Don Stewart <dons at galois.com> writes:

>> If I want to make my own efficient bytestring consumer, is that
>> what I need to use in order to preserve the inherent laziness of
>> the datastructure? 

> you can get foldChunks from Data.ByteString.Lazy.Internal,
> or write your own chunk folder.

IME you can also get nicely by using the standard list-alikes:
uncons, head, tail, take, drop... 

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list