Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Except that Python's listen comprehension syntax was inspired directly by Haskell's.


Python'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.


Really? Guess I really have my languages screwed up!


Yeah, Python took lambdas from the more lispy languages and it took list comprehensions from Haskell, which in turn took them from Set Theory.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: