How to define your own procedures (better known as “functions”) and how to invoke them
When and how you can have several functions with the same name
How to pass arguments to a function, by-value or by-reference
How to return simple and composite values from a function
How to exit prematurely from a function
How references to objects can be manipulated
Defining and Invoking a Function
If it happens that you write the same code several times, you can encapsulate that code in a block, and then give that block a name. In this way you define a “function”. Then you can execute ...