Re:Python List Comprehensions Explained Visually
by dragonwriter on Wednesday December 02, 2015 @07:01PM
(#10666810)
> List comprehensions anoint lists as a special thing. You don't get to play with list comprehensions, unless you're using the type that the language has decided to let you play with.
That's one reason why I like Scala's comprehensions; they have the conciseness of list comprehensions, but are more generic.
That's one reason why I like Scala's comprehensions; they have the conciseness of list comprehensions, but are more generic.