4 ms·
Cool. As a math guy, I enjoy the similarity between comprehensions and set-builder notation: https://en.wikipedia.org/wiki/Set-builder_notation https://en.wiki
by chestervonwinch 11y ago
Cool. As a math guy, I enjoy the similarity between comprehensions and set-builder notation:
https://en.wikipedia.org/wiki/Set-builder_notation https://en.wikipedia.org/wiki/Set-builder_notation
- Gnewt 11y agoIn 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 agoAgreed! Haskell's list comprehensions look even more like set-builder notation: https://wiki.haskell.org/List_comprehension https://wiki.haskell.org/List_comprehension