soma.cell

Variables

Variables, in the reference of the Soma programming language (soma 3.2.4). A block marked ✓ is a whole program that soma check accepts; the others are excerpts.

let x = 42
x = x + 1                    // reassignment
x += 10                      // compound assignment
x -= 5                       // compound subtraction
x *= 2                       // compound multiplication
x /= 3                       // compound division
let name = "world"
let greeting = "hello {name}" // interpolation