Re:Project Euler
by oldandtired on Sunday December 10, 2017 @10:56PM
(#15895061)
and Python got this from....? (which language)
[ Parent
| on HN ]
Well Python got it from Haskell. I thought I made it clear enough.
Re:Project Euler
by oldandtired on Monday December 11, 2017 @05:16AM
(#15896154)
Well years ago, I saw a discussion that put this in the context of python's generators being inspired by what was in Icon.
Re:Project Euler
by bunderbunder on Monday December 11, 2017 @08:55AM
(#15897012)
I'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.