Request arity directly.
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 1 May 2015 18:45:28 +0000 (14:45 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 1 May 2015 18:45:28 +0000 (14:45 -0400)
As was pointed-out by ROK

src/hope_fun.erl

index 1f8669c..c2443ce 100644 (file)
@@ -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()) ->
This page took 0.026295 seconds and 4 git commands to generate.