From 7eb00ae07fef790ac90ee906c006819eb8ddd340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Tue, 31 Oct 2023 07:17:25 -0700 Subject: [PATCH] Update exercises/practice/pop-count/.meta/example.gleam Co-authored-by: Louis Pilfold --- exercises/practice/pop-count/.meta/example.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/pop-count/.meta/example.gleam b/exercises/practice/pop-count/.meta/example.gleam index e5c8f6eea..d3f684bab 100644 --- a/exercises/practice/pop-count/.meta/example.gleam +++ b/exercises/practice/pop-count/.meta/example.gleam @@ -9,7 +9,7 @@ fn recurse(number: Int, eggs: Int) -> Int { case number { 0 -> eggs _ -> { - let new_number = result.unwrap(int.floor_divide(number, 2), 0) + let new_number = number / 2 case int.is_odd(number) { True -> recurse(new_number, eggs + 1) _ -> recurse(new_number, eggs)