summaryrefslogtreecommitdiff
path: root/doc/concepts
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-08-14 11:43:28 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-08-14 12:09:57 +0200
commit726e70cb9bf544ee3164e32405e4dd4f750c0403 (patch)
tree7e15485967af5f24852e30d54059b62a40e8928d /doc/concepts
parent755360ab129879c8981c84262ef1f1d3e697a5e0 (diff)
downloadjustbuild-726e70cb9bf544ee3164e32405e4dd4f750c0403.tar.gz
expression: add new built in "set"
... to obtain from a list of strings a map with those entries as keys and true as value. In this way, repeated membership tests in lists can be implemented more efficiently.
Diffstat (limited to 'doc/concepts')
-rw-r--r--doc/concepts/expressions.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/concepts/expressions.md b/doc/concepts/expressions.md
index b6aa0945..c66de8bc 100644
--- a/doc/concepts/expressions.md
+++ b/doc/concepts/expressions.md
@@ -249,6 +249,10 @@ those) argument(s) to obtain the final result.
same iteration order as the list for all lists indexable by
32-bit integers.
+- `"set"` The argument has to be a list of strings. The result is
+ a map with the members of the list as keys, and all values being
+ `true`.
+
- `"++"` The argument has to be a list of lists. The result is
the concatenation of those lists.