We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0acbb15 commit 960bf01Copy full SHA for 960bf01
lib/elixir/lib/protocol.ex
@@ -280,11 +280,9 @@ defmodule Protocol do
280
type_args = :lists.map(fn _ -> quote(do: term) end, :lists.seq(2, arity))
281
type_args = [quote(do: t) | type_args]
282
283
- convert_variables = fn pos ->
284
- Macro.var(String.to_atom("arg" <> Integer.to_string(pos)), __MODULE__)
285
- end
+ to_var = fn pos -> Macro.var(String.to_atom("arg" <> Integer.to_string(pos)), __MODULE__) end
286
287
- call_args = :lists.map(convert_variables, :lists.seq(2, arity))
+ call_args = :lists.map(to_var, :lists.seq(2, arity))
288
call_args = [quote(do: term) | call_args]
289
290
quote generated: true do
0 commit comments