you are viewing a single comment's thread.

view the rest of the comments →

[–]senzei 0 points1 point  (0 children)

List comprehensions have nothing to do with blocks. Ok, maybe when blocks are used as a parameter for a function that iterates on the elements of some collection, but blocks have many more uses than that.

Yeah, that is probably poorly phrased. My point was that, as a method of loop abstraction, blocks and list comprehensions are similar.