diff options
Diffstat (limited to 'examples/types-concept.milch')
| -rw-r--r-- | examples/types-concept.milch | 4 |
1 files changed, 2 insertions, 2 deletions
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))) |
