mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-13 18:11:39 -06:00
update rna & word_count with proper formatting (via ElixirLS)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user