From f692a5efc62bf95f57d123895b7dce55d2eb9741 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 20 May 2023 21:56:19 +0200 Subject: Version bump --- docs/src/reference/types.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/src/reference') 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 -- cgit v1.2.3