Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Oct 2, 2024
1 parent 73e1b26 commit 723ed23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/alphametics/.meta/example.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn add_term(
|> string.to_graphemes
|> list.reverse
|> list.index_fold(from: coefficients, with: fn(coefficients, letter, index) {
dict.update(coefficients, letter, fn(maybe_coeff) {
dict.upsert(coefficients, letter, fn(maybe_coeff) {
operator(option.unwrap(maybe_coeff, 0), pow(10, index))
})
})
Expand Down

0 comments on commit 723ed23

Please sign in to comment.