summaryrefslogtreecommitdiff
path: root/doc/concepts
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-08-14 12:13:05 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-08-14 12:43:35 +0200
commitcbe7bde952b4ed5d910e9a152f953ba172c5f654 (patch)
tree729f58fb6f26fe5b906e822d58030fb9a399e5dd /doc/concepts
parent726e70cb9bf544ee3164e32405e4dd4f750c0403 (diff)
downloadjustbuild-cbe7bde952b4ed5d910e9a152f953ba172c5f654.tar.gz
expression: add new built in "reverse"
While a foldl is enough to implement a reverse functionality, adding it as a built in allows doing so in linear time.
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 c66de8bc..dcd567af 100644
--- a/doc/concepts/expressions.md
+++ b/doc/concepts/expressions.md
@@ -253,6 +253,9 @@ those) argument(s) to obtain the final result.
a map with the members of the list as keys, and all values being
`true`.
+- `"reverse"` The argument has to be a list. The result is a new list
+ with the entries in reverse order.
+
- `"++"` The argument has to be a list of lists. The result is
the concatenation of those lists.