From 5e20a66741da70b194b5d74589f98605a69fd0f4 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Sun, 21 Dec 2014 03:29:43 -0500 Subject: [PATCH] Improve hope_list:map_rev/2 description. --- src/hope_list.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hope_list.erl b/src/hope_list.erl index aba9944..0d71ece 100644 --- a/src/hope_list.erl +++ b/src/hope_list.erl @@ -23,7 +23,8 @@ map_slow(Xs, F) -> lists:reverse(map_rev(Xs, F)). -%% @doc O(N), tail-recursive equivalent to lists:rev(lists:map(F, L)) +%% @doc Tail-recursive alternative to lists:map/2, which accumulates and +%% returns list in reverse order. %% @end -spec map_rev([A], fun((A) -> (B))) -> [B]. -- 2.20.1