Silly realisation

I bet a lot of people would consider this to be fairly obvious, but today, while solving the fourth of Google’s Treasure Hunt problems I realised just how similar in essence laziness+infinate lists in Haskell is to generators in Python. It’s just much easier to work with the former ;-)

One Comment

  1. pozorvlak:

    Indeed. You might be interested by this related post of mine :-)

Leave a comment

You can use markdown to make your comment beautiful.