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