Skip to content

Commit

Permalink
Source-file update for #1634
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Aug 27, 2024
1 parent b63f66f commit b6bfc79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/reference-dsl-variables.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ GENMD-RUN-COMMAND
mlr put '$[[[6]]] = "NEW"' data/small
GENMD-EOF

!!! note

You can use positional field names only in the [DSL](reference-dsl.md), so only with the verbs `put` and `filter`.

## Out-of-stream variables

These are prefixed with an at-sign, e.g. `@sum`. Furthermore, unlike built-in variables and stream-record fields, they are maintained in an arbitrarily nested map: you can do `@sum += $quantity`, or `@sum[$color] += $quantity`, or `@sum[$color][$shape] += $quantity`. The keys for the multi-level map can be any expression which evaluates to string or integer: e.g. `@sum[NR] = $a + $b`, `@sum[$a."-".$b] = $x`, etc.
Expand Down

0 comments on commit b6bfc79

Please sign in to comment.