Walter Bright:

Algorithms don't actually do deforestation or fusion. The magic happens in how the algorithm is implemented, i.e. the elements are created lazily (on demand) rather than eagerly.

Stream fusion is often about laziness. There is a ton of literature about this topic.

Bye,
bearophile

Reply via email to