From: Siraaj Khandkar Date: Fri, 1 May 2015 18:45:28 +0000 (-0400) Subject: Request arity directly. X-Git-Tag: 3.2.0~1 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=a3173cf2c4cd3aa3b7da033cac6b2d9e9ccd492a;p=hope.git Request arity directly. As was pointed-out by ROK --- diff --git a/src/hope_fun.erl b/src/hope_fun.erl index 1f8669c..c2443ce 100644 --- a/src/hope_fun.erl +++ b/src/hope_fun.erl @@ -13,7 +13,7 @@ id(X) -> -spec curry(fun()) -> fun(). curry(F) -> - {some, Arity} = hope_kv_list:get(erlang:fun_info(F), arity), + {arity, Arity} = erlang:fun_info(F, arity), curry(F, [], Arity). -spec curry(fun(), list(), integer()) ->