3 ms·
and Python got this from....? (which language)
by oldandtired 9y ago
and Python got this from....? (which language)
- kccqzy 9y agoWell Python got it from Haskell. I thought I made it clear enough. See https://docs.python.org/3/howto/functional.html https://docs.python.org/3/howto/functional.html
- oldandtired 9y agoWell years ago, I saw a discussion that put this in the context of python's generators being inspired by what was in Icon.
- bunderbunder 9y agoI'm just now looking at Icon code for the first time, but, to me, Python's list comprehension syntax looks more similar to Haskell's than Icon's.