summaryrefslogtreecommitdiff
path: root/doc/concepts
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-22 10:48:46 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-04-24 12:30:09 +0200
commit14b93071eca21c69b635bd77eb68057b2906ddab (patch)
tree324d82d99e9015239f548acf17e1e9373af1f65a /doc/concepts
parent199487b5ba387653bbec36d6dcea85819c90994c (diff)
downloadjustbuild-14b93071eca21c69b635bd77eb68057b2906ddab.tar.gz
expressions: add "length" function
Lists are somtimes used in configurations as replacement for tuples. Providing length gives an easy way to detect usage errors.
Diffstat (limited to 'doc/concepts')
-rw-r--r--doc/concepts/expressions.md3
1 files changed, 3 insertions, 0 deletions
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.