summaryrefslogtreecommitdiff
path: root/doc/concepts/expressions.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/concepts/expressions.md')
-rw-r--r--doc/concepts/expressions.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/concepts/expressions.md b/doc/concepts/expressions.md
index 74058f84..5d12d8d2 100644
--- a/doc/concepts/expressions.md
+++ b/doc/concepts/expressions.md
@@ -84,6 +84,7 @@ and `null` otherwise.
The value is the value of the key `"$1"` uninterpreted but replacing
all outermost maps having a key `"type"` with the value either
`","` or `",@"` in the following way.
+
- If the value for the key `"type"` is `","`, the value for the
key `"$1"` (or `null` if there is no key `"$1"`) is evaluated
and the map is replaced by the value of that evaluation.
@@ -94,6 +95,7 @@ all outermost maps having a key `"type"` with the value either
that list (i.e., the list obtained by evaluating the value for
`"$1"`) are inserted (not the list itself) into the surrounding
list replacing that map.
+
For example, ``{"type": "`", "$1": [1, 2, {"type": ",@", "$1": [3, 4]}]}``
evaluates to `[1, 2, 3, 4]` while
``{"type": "`", "$1": [1, 2, {"type": ",", "$1": [3, 4]}]}``