resolve
resolve(node, scope)
Recursively substitute variables in an expression tree.
Try it yourself:
$1 | resolve(parse("1 + x"), { x: 7 })
| |
$2 | resolve(parse("size(text)"), { text: "Hello World" })
| |
$3 | resolve(parse("x + y"), { x: parse("3z") })
| |
$4 | resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })
|
See also:
All functions