Answers for "elixir function arity"

0

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)
Posted by: Guest on August-06-2020

Browse Popular Code Answers by Language