News for hackers. Stuff that matters.
Re:Coconut – Pythonic functional programming language by FreeFull on Thursday June 23, 2016 @11:44AM (#11961876)
I would write it like this, to avoid constructing the immediate list:

    sum_of_squares = sum(x*x for x in arr)
This makes use of https://www.python.org/dev/peps/pep-0289/
Re:Coconut – Pythonic functional programming language by brianwawok on Thursday June 23, 2016 @12:08PM (#11962070)
Thanks for the link, this is good to know.