On Monday, 24 November 2014 at 15:44:02 UTC, Ramon wrote:
What is the difference between lazy and eager ranges?

(I guess, the lazy one has not yet queried the elements)

The lazy returns a range that once iterated gives the results one at a time (so the function allocates no heap memory).
The eager version creates an array of the results in heap memory.

Bye,
bearophile

Reply via email to