4 ms·
It's the difference between evaluating all the elements of a list, consing them, and returning it all at once and evaluating the elements one at a time (i.e. la
by jejones3141 3y ago
It's the difference between evaluating all the elements of a list, consing them, and returning it all at once and evaluating the elements one at a time (i.e. lazy evaluation). Saves memory and time and it gives you a chance to quit early.