From 726e70cb9bf544ee3164e32405e4dd4f750c0403 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 14 Aug 2023 11:43:28 +0200 Subject: 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. --- doc/concepts/expressions.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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. -- cgit v1.2.3