diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2021-11-24 14:17:53 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2021-11-25 09:53:44 +0200 |
| commit | b0c42f8ad5f89be748741a8dd2c17bfe1aa3d0eb (patch) | |
| tree | 76ea979e2662167695237249bbae62d4c47ca897 /samples | |
| parent | 502dd83e65b3e00b5150fe6fc7aa1d313effe824 (diff) | |
Fix bug in reduce Application case
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/sample1.code | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/samples/sample1.code b/samples/sample1.code index 6ac6847..a675849 100644 --- a/samples/sample1.code +++ b/samples/sample1.code @@ -1,11 +1,18 @@ -# f a b = int.eq? a b; -# f 1 2 -# "true" -# "false"; +# result = +# bool.to-string +# (int.eq? 2 2); -compare? a b fn = fn b a; -compare? 2 2 int.eq? - "true" - "false"; +# string.eq? result "true"; -int.eq? "foobar";
\ No newline at end of file +# string.eq? +# (bool.to-string +# (int.eq? 2 2)) +# "true"; + +# string.eq? +# (bool.to-string +# (int.eq? 2 2)); + +string.eq? + (bool.to-string + true); |
