News for hackers. Stuff that matters.
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.

Re:Python List Comprehensions Explained Visually by whateveracct on Wednesday December 02, 2015 @09:23PM (#10667331)
aka monads ;)