diff options
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/sample1.code | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/samples/sample1.code b/samples/sample1.code index f033721..337bd6d 100644 --- a/samples/sample1.code +++ b/samples/sample1.code @@ -1 +1,8 @@ -my-func 1 2
\ No newline at end of file +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 |
