From cbe7bde952b4ed5d910e9a152f953ba172c5f654 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 14 Aug 2023 12:13:05 +0200 Subject: 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. --- doc/concepts/expressions.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/concepts/expressions.md') 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. -- cgit v1.2.3