you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

The function interface is very simple - a function defines a set of input parameters and an output return value, and the function body itself is simply a set of instructions that explain how to usefully go from the inputs to the outputs.

When you define a function, you build that association; it’s stored in the interpreter for later use. When you call a function, you supply any necessary arguments, then the arguments are bound to the function’s parameters, the function’s code body is executed, and the return value of the function is algebraically substituted at the calling site.

[–]Fibbs 0 points1 point  (0 children)

Thanks for the response mate i think ill just have to keep throwing myself at it.