diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-22 10:48:46 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-24 12:30:09 +0200 |
commit | 14b93071eca21c69b635bd77eb68057b2906ddab (patch) | |
tree | 324d82d99e9015239f548acf17e1e9373af1f65a /doc/concepts | |
parent | 199487b5ba387653bbec36d6dcea85819c90994c (diff) | |
download | justbuild-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.md | 3 |
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. |