Function as return type from another function
suggest change// `math` is the Mathematics value from "Assigning a function to a variable".
// performComplexOperation returns a function, which is called with 5.
print(math.performComplexOperation(valueOne: 4)(5))
Output:
9
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents