V/var keyword
The
V/
varstatement declares a variable initializing it to a value.
V variable_name = value
You can declare more than one variable at a time with a tuple assignment:
F get_row_column() // this is a function returning a tuple ... R (row, col) ... V (row, col) = get_row_column() // analogous code: `V rc = get_row_column(); V row = rc[0]; V col = rc[1]`
Partial declaration is also possible:
(V row2, col) = get_row_column() // `col` has already been declared, `row2` is declared hereor:
(row, V col2) = get_row_column() // `row` has already been declared, `col2` is declared here
To declare and initialize to some value multiple variables at once use this notation ({…}):
V a = V b = 0
To declare a constant "variable" use
-V/
-var:
-V constant_name = value[{…}]