From 3906210db8271bdd459923b2bd1a34493baeedab Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 21 Oct 2019 03:26:38 -0700 Subject: [PATCH] Fix prelude --- schala-lang/language/src/prelude.schala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schala-lang/language/src/prelude.schala b/schala-lang/language/src/prelude.schala index 6ed8784..0a6c93f 100644 --- a/schala-lang/language/src/prelude.schala +++ b/schala-lang/language/src/prelude.schala @@ -6,8 +6,8 @@ type Ord = LT | EQ | GT fn map(input: Option, func: Func): Option { if input { - is Option::Some(x) -> Option::Some(func(x)), - is Option::None -> Option::None, + is Option::Some(x) then Option::Some(func(x)), + is Option::None then Option::None, } }