Request arity directly.
[hope.git] / src / hope_fun.erl
index 5ee6730..c2443ce 100644 (file)
@@ -13,7 +13,7 @@ id(X) ->
 -spec curry(fun()) ->
     fun().
 curry(F) ->
-    {value, {arity, Arity}} = lists:keysearch(arity, 1, erlang:fun_info(F)),
+    {arity, Arity} = erlang:fun_info(F, arity),
     curry(F, [], Arity).
 
 -spec curry(fun(), list(), integer()) ->
This page took 0.018602 seconds and 4 git commands to generate.