From 731b8398e57f55459d4616b12775a3738517e2e5 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Fri, 3 Sep 2010 22:34:26 +0200 Subject: Fix minor typos in the documentation --- lib/stdlib/doc/src/lists.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/stdlib/doc/src/lists.xml') diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml index b3ad7aaf46..92c4eb4f4c 100644 --- a/lib/stdlib/doc/src/lists.xml +++ b/lib/stdlib/doc/src/lists.xml @@ -220,7 +220,7 @@ follows:

flatmap(Fun, List1) -> - append(map(Fun, List1)) + append(map(Fun, List1)).

Example:

 > lists:flatmap(fun(X)->[X,X] end, [a,b,c]).
@@ -523,7 +523,7 @@ flatmap(Fun, List1) ->
          A = B = term()
       
       
-        

mapfold combines the operations of map/2 and +

mapfoldl combines the operations of map/2 and foldl/3 into one pass. An example, summing the elements in a list and double them at the same time:

@@ -543,7 +543,7 @@ flatmap(Fun, List1) ->
          A = B = term()
       
       
-        

mapfold combines the operations of map/2 and +

mapfoldr combines the operations of map/2 and foldr/3 into one pass.

-- cgit v1.2.3