Use bare double underscores instead of atoms

This commit is contained in:
Uku Taht
2016-04-19 13:35:20 +01:00
parent 45619f6bdb
commit ea2bb8f9bf
14 changed files with 141 additions and 139 deletions

View File

@@ -8,6 +8,7 @@ defmodule Blanks do
end
defp pre(:__, [first | remainder]), do: {first, remainder}
defp pre({:__, _, _}, [first | remainder]), do: {first, remainder}
defp pre(node, acc), do: {node, acc}
def count(ast) do
@@ -17,5 +18,6 @@ defmodule Blanks do
end
defp count(:__, acc), do: {node, acc+1}
defp count({:__, _, _}, acc), do: {node, acc+1}
defp count(node, acc), do: {node, acc}
end