2 ms·
Well 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/function
by kccqzy 9y ago
Well 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.