From 14b93071eca21c69b635bd77eb68057b2906ddab Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 22 Apr 2024 10:48:46 +0200 Subject: expressions: add "length" function Lists are somtimes used in configurations as replacement for tuples. Providing length gives an easy way to detect usage errors. --- doc/concepts/expressions.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/concepts/expressions.md') diff --git a/doc/concepts/expressions.md b/doc/concepts/expressions.md index 80378191..a14cd60f 100644 --- a/doc/concepts/expressions.md +++ b/doc/concepts/expressions.md @@ -256,6 +256,9 @@ those) argument(s) to obtain the final result. - `"reverse"` The argument has to be a list. The result is a new list with the entries in reverse order. +- `"length"` The argument has to be a list. The result is the length + of the list. + - `"++"` The argument has to be a list of lists. The result is the concatenation of those lists. -- cgit v1.2.3