4 ms·
That's because Python's list comprehensions were derived from Haskell's implementation: https://wiki.python.org/moin/PythonVsHaskell#List_Comprehension_Syntax h
by actsasbuffoon 9y ago
That's because Python's list comprehensions were derived from Haskell's implementation: https://wiki.python.org/moin/PythonVsHaskell#List_Comprehension_Syntax https://wiki.python.org/moin/PythonVsHaskell#List_Comprehens...:
- lmm 9y agoAs per https://wiki.haskell.org/List_comprehension https://wiki.haskell.org/List_comprehension , many Haskell users prefer to use do syntax (indeed I wasn't aware that the list comprehension syntax existed).
- actsasbuffoon 9y agoAgreed, I never use list comprehensions in Haskell. I feel like they're almost always harder to read.