blob: 835b824600b52c380e2611a936fac8ee08a942e2 [file] [log] [blame] [view] [edit]
Closures are special functions that can capture the variables available in the
surrounding scope. Closures consist of three parts:
* A list of arguments enclosed by pipes `|`, these arguments can optionally be
type annotated, but usually the compiler will infer their types
* Optionally the return type using an arrow `->`, again this usually gets
inferred
* A block, the last expression is the return value
{closures.play}