r/programming • • Nov 28 '15

Coding is boring, unless…

https://blog.enki.com/coding-is-boring-unless-4e496720d664
671 Upvotes

390 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Nov 29 '15

That wasn't the verbatim example, but I think with the second snippet, it still has to grab every row and transform it, THEN the Where() method is performed on the transformed object (maybe one of the properties you filter on is a composite value or something). It's still "lazy" in that it uses the yield statement, but it's still operating on a larger, unfiltered result set.