From: Siraaj Khandkar Date: Sun, 21 Dec 2014 08:29:43 +0000 (-0500) Subject: Improve hope_list:map_rev/2 description. X-Git-Tag: 1.7.0~1 X-Git-Url: https://git.xandkar.net/?p=hope.git;a=commitdiff_plain;h=5e20a66741da70b194b5d74589f98605a69fd0f4 Improve hope_list:map_rev/2 description. --- 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].