Improve hope_list:map_rev/2 description.
authorSiraaj Khandkar <siraaj@khandkar.net>
Sun, 21 Dec 2014 08:29:43 +0000 (03:29 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sun, 21 Dec 2014 08:29:59 +0000 (03:29 -0500)
src/hope_list.erl

index aba9944..0d71ece 100644 (file)
@@ -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].
This page took 0.0287 seconds and 4 git commands to generate.