From b14b453e593d611594cb9f1569503615d64465ac Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 19 Nov 2021 10:39:01 +0200 Subject: Some progress --- samples/sample1.code | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'samples/sample1.code') diff --git a/samples/sample1.code b/samples/sample1.code index b941226..650b0ea 100644 --- a/samples/sample1.code +++ b/samples/sample1.code @@ -1,10 +1 @@ -foo = "foo"; -number-of-the-beast = 666; -cool-number = number-of-the-beast; # value lookup -num = int.zero; # builtin value -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 - number-of-the-beast # else, number of the beast +(id id) 1 -- cgit v1.3