Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chestervonwinch
· 11y ago · 0 comments
Cool. As a math guy, I enjoy the similarity between comprehensions and set-builder notation:
https://en.wikipedia.org/wiki/Set-builder_notation
Comments
[–]
Gnewt
11y ago
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.
[–]
th
11y ago
Agreed! Haskell's list comprehensions look even more like set-builder notation:
https://wiki.haskell.org/List_comprehension