Document {$var}

This commit is contained in:
Nicolas Williams committed 2015-06-26 21:18:58 -05:00
1 parent e16bd17571
commit a220482de6
1 file changed
+3
+3
View File
@@ -2190,6 +2190,9 @@ sections:
with `$x` set to that value. Thus `as` functions as something of a
foreach loop.
Just as `{foo}` is a handy way of writing `{foo: .foo}`, so
`{$foo}` is a handy way of writing `{foo:$foo}`.
Multiple variables may be declared using a single `as` expression by
providing a pattern that matches the structure of the input
(this is known as "destructuring"):