0

sum(cube) is now equivalent to sumOfCube(), the summation function we defined previously to sum the cubes of integers.

sum(cube) is executed first and then this basically returns another function which is applied to the second parameter list (1,5). Just as we did in the previous lesson.

Association of functions is towards the left. Hence, sub(cube)(1,5) == (sum(cube))(1,5)

Source: Grepper

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.

Grepper Account Login Required