Question : elixir function arity
Answered by : annoyed-anteater-n5l0ehquuup9
inspect :erlang.fun_info(fn -> :ok end)[:arity]
inspect :erlang.fun_info(fn a,b-> a+b end)[:arity]
inspect fn a,b-> a+b end |> is_function
inspect fn a,b-> a+b end |> is_function(1)
Source : | Last Update : Thu, 13 Aug 20