News for hackers. Stuff that matters.
Re:Explicit vs. Clever by PySlice on Tuesday April 02, 2013 @10:03PM (#5483727)
Your example is great, but it would be even more convincing if it used list comprehension syntax such as

totals = [order.total for order in orders]

(like some other poster in this thread did)

Then you don't even need to know what "map" means, you only need to know "for" (well, maybe you would need an insight that "order" is defined after its use, but I digress)

There are no comments on this comment yet.