diff --git a/exercises/practice/alphametics/.meta/example.ex b/exercises/practice/alphametics/.meta/example.ex index 662570c206..dd78c79d70 100644 --- a/exercises/practice/alphametics/.meta/example.ex +++ b/exercises/practice/alphametics/.meta/example.ex @@ -35,7 +35,7 @@ defmodule Alphametics do Enum.find_value(numbers, fn number -> leading_zero? = number == 0 && letter in problem.first_letters - unless leading_zero? do + if !leading_zero? do numbers = List.delete(numbers, number) solution = put_in(solution[letter], number) solve(letters, numbers, solution, problem) diff --git a/exercises/practice/largest-series-product/.meta/example.ex b/exercises/practice/largest-series-product/.meta/example.ex index a3b2f9228d..35edca2e65 100644 --- a/exercises/practice/largest-series-product/.meta/example.ex +++ b/exercises/practice/largest-series-product/.meta/example.ex @@ -25,7 +25,7 @@ defmodule Series do end def largest_product(number_string, size) do - unless Enum.member?(Range.new(0, String.length(number_string)), size) do + if not Enum.member?(Range.new(0, String.length(number_string)), size) do raise ArgumentError end