Replace lists:keysearch with hope_kv_list:get 3.1.1
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 29 Apr 2015 03:35:53 +0000 (23:35 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 29 Apr 2015 03:35:53 +0000 (23:35 -0400)
src/hope.app.src
src/hope_fun.erl

index f04e3ae..1ac246a 100644 (file)
@@ -1,7 +1,7 @@
 {application, hope,
  [
   {description, "Higher Order Programming in Erlang"},
-  {vsn, "3.1.0"},
+  {vsn, "3.1.1"},
   {registered, []},
   {applications, [
                   kernel,
index 5ee6730..1f8669c 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)),
+    {some, Arity} = hope_kv_list:get(erlang:fun_info(F), arity),
     curry(F, [], Arity).
 
 -spec curry(fun(), list(), integer()) ->
This page took 0.028486 seconds and 4 git commands to generate.