4 ms·
Incidentally, Haskell has list comprehensions so you could write [x^2 | x <- [1..10]] which looks about as legible as the Python version.
by nequo 3y ago
Incidentally, Haskell has list comprehensions so you could write
[x^2 | x <- [1..10]]
which looks about as legible as the Python version.