doc: update docs and sample files
This commit is contained in:
@@ -1,36 +1,9 @@
|
||||
y = -1 + 2 * 3 / 4 * 5 - 6 + 7 multiply-by:2.
|
||||
z = w = 2 + 3 multiply-by:2.
|
||||
x = (((1 + 2 * 3) multiply-by:3) add: 5) + 2.
|
||||
x = ((1 + 2 * 3) multiply-by:3).
|
||||
p = 5 multiply(by:3, add:(2 + 1)).
|
||||
q = 10 squared squared.
|
||||
package net.doorstuck.test
|
||||
|
||||
p1
|
||||
set-age:2 squared squared + 4 squared multiply(by:2, add:4 + 1 * 3)
|
||||
in:"mon" + "ths".
|
||||
use std.io
|
||||
|
||||
m = xz multiply(by:3 add:2) squared.
|
||||
y = 32 * 64.
|
||||
z = 64 / 4.
|
||||
x = y + z.
|
||||
|
||||
m = xz multiply(by:3 add:2); squared.
|
||||
|
||||
x = Ordered-Collection new
|
||||
add: 2;
|
||||
add: 4;
|
||||
add: 6;
|
||||
yourself.
|
||||
|
||||
age = Person new(name:"John Doe", age:34)
|
||||
set-age:144 in-unit:"months";
|
||||
age-in-months.
|
||||
|
||||
x = 5.
|
||||
q = 10 if x > 2 else 20.
|
||||
q = if x > 2 then 10 else 20 end.
|
||||
|
||||
cout put:5 multiply(by:5, add:2) if x > 2.
|
||||
|
||||
if x > 2 then
|
||||
cout put:"Greater"
|
||||
else
|
||||
cout put:"Less"
|
||||
end
|
||||
cout put:'Answer: {x}'
|
||||
|
||||
Reference in New Issue
Block a user