major
nice-to-have
defect
major
enhancement
(User-visible)
Within a block, a "local variable" can be defined using ` name = expr `, which can then be accessed in subsequent expressions within that block. A user-defined function (such as `$plus3` in the example) can be called just like a built-in method (`$plus3(4)`).
{plus3 = x -> $x + 3; op = fun -> $fun(3) * $fun(4); $op($plus3); }
The result is 42.0.
As with built-in methods, functions with multiple arguments can be called using the (arg, ..., arg) shorthand notation:
{add = x -> y -> $x + $y; $add(6, 7); }
This is equivalent to:
{add = x -> y -> $x + $y; $add(6)(7); }
Test
- test.com.top_logic.model.search.expr.TestSearchExpression