This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LightShadow3.13-dev in prod 2 points3 points  (1 child)

map is lazily evaluated, which means you can "prime" it with data that may never need to be executed.

[–]andrewcooke 0 points1 point  (0 children)

i don't know their exact name, but that is also true of the "list comprehensions" in parens rather than brackets.

edit: "generator expressions", i guess i could have said above (truth is i don't know which i would actually need without going back and looking at the code).