[Haskell-cafe] laziness blowup exercise

Bas van Dijk v.dijk.bas at gmail.com
Wed Jul 15 04:16:12 EDT 2009

On Wed, Jul 15, 2009 at 3:02 AM, Thomas Hartman<tphyahoo at gmail.com> wrote:
> Please suggest more of these types of exercises if you have them and
> maybe we can collect the folk wisdom into a wiki page and/or exercise
> page for beginners.

My 'stream' library[1] also has some examples. Look at the following
functions in 'Data.Stream':

* mapAccum'
* scan'
* iterate'
* unfold'

There are similar examples in 'Control.Monad.StreamT'.

[1] http://code.haskell.org/~basvandijk/code/stream/  (Not on Hackage)

More information about the Haskell-Cafe mailing list