From 27631b50436c043b2db6662dd9891eb0078519e5eeb91b2ef184e99c76748ec0 Mon Sep 17 00:00:00 2001 From: nazrin Date: Sun, 8 Dec 2024 23:58:11 +0000 Subject: [PATCH] Day 7, remove useless braces --- 7.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/7.jl b/7.jl index ad76aa5..d86854a 100644 --- a/7.jl +++ b/7.jl @@ -8,7 +8,7 @@ for (target,nums) in Iterators.peel.(equations) nums = collect(nums) function testCase(funcs::Tuple, p = 1, sum = 0)::Bool if p > length(nums) - return (sum == target) + return sum == target end return any(testCase(funcs, p+1, fn(sum, nums[p])) for fn in funcs) end