News for hackers. Stuff that matters.
Re:Coconut – Pythonic functional programming language by hcrisp on Thursday June 23, 2016 @12:48PM (#11962426)
For simple mathematical operations you can import them as functions:

    from operator import mul, add
    arr = [1, 2, 3]
    sum_of_squares = reduce(add, map(mul, arr, arr))

There are no comments on this comment yet.