TypeDB 3.0 is live! Get started for free.

let …​ = statement

The statement let <VAR> = <EXPRESSION> assigns the result of a single valued expression <EXPRESSION> to the variable <VAR>.

The expression can be a literal, an arithmetic expression, or a single valued function call.

If the function returns a tuple, multiple variables must be specified on the left hand side of the assignment.

let $x, $y = minmax($a, $b);