Skip to content

Commit

Permalink
Dict.update breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-4 authored Sep 26, 2024
1 parent e704fe1 commit 216d7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/practice/alphametics/.meta/Example.roc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit 216d7c8

Please sign in to comment.