blob: 337bd6d83802213082c935a01b044c8f3dba7b56 (
plain)
1
2
3
4
5
6
7
8
|
foo = "foo";
bar = "bar";
int.double = int.multiply 2;
list.multiply-all = reduce int.multiply 1;
ifelse (string.eq? foo bar)
(int.double 1) # if foo = bar, calc 1 * 2
(int.double 2) # else, calc 2 * 2
|