Files
Decodal/doc/manual/source/language/expression/function.md
T

406 B

Function Expression

A function expression is a value that accepts arguments and returns an expression.

(value: Int) => value + 1

See Functions for the complete function specification.

Evaluation

A function can reference bindings from the lexical scope where it was defined. Its body is evaluated when the function is called, not when the function value is created.