define name (symbol)
Allows you to group a bunch of code and give it your own name for future re-use. Functions are very useful for structuring your code. They are also the gateway into live coding as you may redefine a function whilst a thread is calling it, and the next time the thread calls your function, it will use the latest definition.
Note, it is not recommended to start a function name with a capital letter if it takes no parameters.
Introduced in v2.0
# Example 1 | |
|
|
# Example 2 | |
|
|