📅  最后修改于: 2022-03-11 14:48:01.802000             🧑  作者: Mango
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)