Function
A function produces a return value from a list of argument values.
Related concepts: OperatorParameterArgumentReturnMethod
Closest Wikipedia entry: Subroutine
Misconceptions about Function15 documented Misconceptions
Check YourselfDeferredReturn
A return statement in the middle of a function doesn't return immediately
MultipleValuesReturn
Functions can return multiple values
OutsideInFunctionNesting
Nested function calls are invoked outside in
ParenthesesOnlyIfArgument
() are optional for function calls without arguments
ReturnCall
Return statements need () around the return value