aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/aoc22_1.milch2
-rw-r--r--examples/test.milch2
-rw-r--r--examples/types-concept.milch4
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/aoc22_1.milch b/examples/aoc22_1.milch
index becdaee..ca7bea1 100644
--- a/examples/aoc22_1.milch
+++ b/examples/aoc22_1.milch
@@ -23,7 +23,7 @@
(split-by "")
(map (map parse-int))
(map (foldr + 0))
- max
+ maximum
]))
(print-fmt! "Result 1: {0}\n" [result1])
diff --git a/examples/test.milch b/examples/test.milch
index a8225b1..9f40a52 100644
--- a/examples/test.milch
+++ b/examples/test.milch
@@ -2,6 +2,6 @@
(map (+ 1) [1 2 3])
(foldr + 0 [1 2 3])
-(filter is-even [0 1 2 3 4 5])
+(filter even? [0 1 2 3 4 5])
(reverse [1 2 3])
(pipe 10 [(+ 1) (+ 2)])
diff --git a/examples/types-concept.milch b/examples/types-concept.milch
index 476c96b..a2126d9 100644
--- a/examples/types-concept.milch
+++ b/examples/types-concept.milch
@@ -26,8 +26,8 @@
true false
false true)))
-(type is-even (\[Int] Bool))
-(let is-even (\[n]
+(type even? (\[Int] Bool))
+(let even? (\[n]
(match (mod n 2)
0 true
1 false)))