update rna & word_count with proper formatting (via ElixirLS)

This commit is contained in:
Xevion
2021-01-18 15:50:59 -06:00
parent 3194f81ece
commit e631ea80bc
2 changed files with 5 additions and 3 deletions

View File

@@ -12,6 +12,6 @@ defmodule WordCount do
|> String.downcase()
|> String.split(@splitters)
|> Enum.filter(&(String.length(&1) > 0))
|> Enum.reduce(%{}, fn (word, count) -> Map.update(count, word, 1, &(&1 + 1)) end)
|> Enum.reduce(%{}, fn word, count -> Map.update(count, word, 1, &(&1 + 1)) end)
end
end