elixir function arity code example
Example: elixir function arity
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)