Elixir Function Arity

[Solved] Elixir Function Arity | Elixir - Code Explorer | yomemimo.com
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

Answers related to elixir function arity

Code Explorer Popular Question For Elixir