home
/
code
/
hope.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a81fba
)
Improve hope_list:map_rev/2 description.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 21 Dec 2014 08:29:43 +0000
(
03:29
-0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 21 Dec 2014 08:29:59 +0000
(
03:29
-0500)
src/hope_list.erl
patch
|
blob
|
blame
|
history
diff --git
a/src/hope_list.erl
b/src/hope_list.erl
index
aba9944
..
0d71ece
100644
(file)
--- 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].
This page took
0.0287 seconds
and
4
git commands to generate.