From: Siraaj Khandkar Date: Wed, 29 Apr 2015 03:35:53 +0000 (-0400) Subject: Replace lists:keysearch with hope_kv_list:get X-Git-Tag: 3.1.1^0 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=87160c0adda38ad3c307cc4072a03ab606f359ef;p=hope.git Replace lists:keysearch with hope_kv_list:get --- diff --git a/src/hope.app.src b/src/hope.app.src index f04e3ae..1ac246a 100644 --- a/src/hope.app.src +++ b/src/hope.app.src @@ -1,7 +1,7 @@ {application, hope, [ {description, "Higher Order Programming in Erlang"}, - {vsn, "3.1.0"}, + {vsn, "3.1.1"}, {registered, []}, {applications, [ kernel, diff --git a/src/hope_fun.erl b/src/hope_fun.erl index 5ee6730..1f8669c 100644 --- a/src/hope_fun.erl +++ b/src/hope_fun.erl @@ -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()) ->