diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-20 21:56:19 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-20 22:05:55 +0200 |
| commit | f692a5efc62bf95f57d123895b7dce55d2eb9741 (patch) | |
| tree | ab90e2ba8ea513a144a087e1f3e038c75748a8b4 /docs/src/reference | |
| parent | 1321862cd54eb4abefb5d435285e3de9e0848c4c (diff) | |
Version bumpv0.4.0
Diffstat (limited to 'docs/src/reference')
| -rw-r--r-- | docs/src/reference/types.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md index a5741337..2fceb2b3 100644 --- a/docs/src/reference/types.md +++ b/docs/src/reference/types.md @@ -832,6 +832,12 @@ kind. In contrast to normal functions, they can further be used in [set rules]($styling/#set-rules), [show rules]($styling/#show-rules), and [selectors]($type/selector). +### Function scopes { #function-scopes } +Functions can hold related definitions in their own scope, similar to a +[module]($scripting/#modules). Examples of this are +[`assert.eq`]($func/assert.eq) or [`list.item`]($func/list.item). However, this +feature is currently only available for built-in functions. + ### Defining functions { #definitions } You can define your own function with a [let binding]($scripting/#bindings) that has a parameter list after |
