Junior — Middle+
Addition function with support for partial application
livecode
Task condition
Create a function add that can accept arguments partially. It should allow calling it sequentially, each time adding the passed numbers to the total result. If the function is called without parameters, it should return the accumulated sum.