From 216d7c8ab087eeb8353d5222b9a3a1b8c31f98b1 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:57:06 +0200 Subject: [PATCH] Dict.update breaking change https://roc.zulipchat.com/#narrow/stream/397893-announcements/topic/Breaking.20change.3A.20Dict.2Eupdate/near/472915740 https://github.com/roc-lang/roc/pull/7107 --- exercises/practice/alphametics/.meta/Example.roc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/practice/alphametics/.meta/Example.roc b/exercises/practice/alphametics/.meta/Example.roc index 070b1a3..848718c 100644 --- a/exercises/practice/alphametics/.meta/Example.roc +++ b/exercises/practice/alphametics/.meta/Example.roc @@ -65,8 +65,8 @@ insertTerm = \equation, letters, polarity -> |> Num.mul polarity Dict.update dict letter \val -> when val is - Missing -> Present coeff - Present c -> Present (c + coeff) + Err Missing -> Ok coeff + Ok c -> Ok (c + coeff) parse : Str -> Result { addends : List (List U8), sum : List U8 } _ parse = \problem ->