4 ms·
Python's list comprehensions are a specialization of Haskell's list comprehensions[0]. I think Scala was influenced by Haskell's list comprehensions. 0: needs
by codygman 10y ago
Python's list comprehensions are a specialization of Haskell's list comprehensions[0].
I think Scala was influenced by Haskell's list comprehensions.
0: needs citation, though I remember reading something semi official about pythons comprehensions being influenced by Haskell. Maybe Python.org's page on Haskell.
- haldean 10y agoWell at the very least, Haskell's came first; they were part of Haskell 98 (finalized in 1999) and Python 2.0 (the first version with comprehensions) was released in 2000.