News for hackers. Stuff that matters.
Re:Python List Comprehensions Explained Visually by chestervonwinch on Wednesday December 02, 2015 @05:34PM (#10666360)
Cool. As a math guy, I enjoy the similarity between comprehensions and set-builder notation:

https://en.wikipedia.org/wiki/Set-builder_notation

Re:Python List Comprehensions Explained Visually by Gnewt on Wednesday December 02, 2015 @05:45PM (#10666432)
In the opposite direction, having knowledge of Python's list comprehensions (and to some degree, an understanding of lazy evaluation) helped me a ton when set-builder notation was introduced in my first discrete math class.
Re:Python List Comprehensions Explained Visually by th on Wednesday December 02, 2015 @07:38PM (#10666969)
Agreed! Haskell's list comprehensions look even more like set-builder notation: https://wiki.haskell.org/List_comprehension