Skip to content

Commit

Permalink
Merge pull request #2 from maximvl/master
Browse files Browse the repository at this point in the history
Fix compiler warning about pipe
  • Loading branch information
sviridov committed Feb 23, 2016
2 parents 33e352d + 590c847 commit a3951b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/anaphora.ex
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ defmodule Anaphora do

defp generate_z_combinator_ys({:->, _c, [arguments, _body]}) do
1..number_of_afn_arguments(arguments)
|> Enum.map &(Macro.var(String.to_atom("y#{&1}"), __MODULE__))
|> Enum.map(&(Macro.var(String.to_atom("y#{&1}"), __MODULE__)))
end

defp number_of_afn_arguments([{:when, _c, arguments}]), do: Enum.count(arguments) - 1
Expand Down

0 comments on commit a3951b9

Please sign in to comment.