Help › Topics
Programs
Several lines of steps: local definitions, if, for, while and return.
A program is a definition whose value is worked out by steps. Type ] to start one, and again for each new line; the value is the last line's. Inside, { makes a local definition ←, which lasts only inside the program.
The toolbar has if, otherwise, for, while and return. } types if, which applies to the line it ends.
f(n)≔s←0for i∈1..n s←s+is
f(10)=55