From 87160c0adda38ad3c307cc4072a03ab606f359ef Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Tue, 28 Apr 2015 23:35:53 -0400 Subject: [PATCH] Replace lists:keysearch with hope_kv_list:get --- src/hope.app.src | 2 +- src/hope_fun.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()) -> -- 2.20.1