diff --git a/elixir/isogram/lib/isogram.ex b/elixir/isogram/lib/isogram.ex index db21363..aa87219 100644 --- a/elixir/isogram/lib/isogram.ex +++ b/elixir/isogram/lib/isogram.ex @@ -4,10 +4,11 @@ defmodule Isogram do """ @spec isogram?(String.t()) :: boolean def isogram?(sentence) do - clean = sentence - |> String.downcase() - |> String.codepoints() - |> Enum.reject(fn char -> char == "-" || char == " " end) + clean = + sentence + |> String.downcase() + |> String.codepoints() + |> Enum.reject(fn char -> char == "-" || char == " " end) length(clean) == length(Enum.uniq(clean)) end