home
/
code
/
hope.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87160c0
)
Request arity directly.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 1 May 2015 18:45:28 +0000
(14:45 -0400)
committer
Siraaj 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
patch
|
blob
|
blame
|
history
diff --git
a/src/hope_fun.erl
b/src/hope_fun.erl
index
1f8669c
..
c2443ce
100644
(file)
--- 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()) ->
This page took
0.026295 seconds
and
4
git commands to generate.