score:3

Accepted answer

Due to deferred execution, the lambda expression in the first line will only execute when the result is iterated in the second line.

This behavior is completely correct.

Here is a very good explanation.


Related Articles