4 ms·
Except that Python's listen comprehension syntax was inspired directly by Haskell's.
by lgas 11y ago
Except that Python's listen comprehension syntax was inspired directly by Haskell's.
- wodenokoto 11y agoReally? Guess I really have my languages screwed up!
- Lambdanaut 11y agoYeah, Python took lambdas from the more lispy languages and it took list comprehensions from Haskell, which in turn took them from Set Theory.
- bennylope 11y agoPython's [list] comprehension syntax was directly inspired by Haskell's list comprehension syntax. And it's also widely (I'd argue) considered to be the Pythonic way of composing lists (and other iterables), rather than using map. It's provenance doesn't detract from that.