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
https://en.wikipedia.org/wiki/Set-builder_notation