From d3109217f88e05c7b57d919a4f49ec57549f4ddd Mon Sep 17 00:00:00 2001
From: Hans Bolinder
Date: Wed, 12 May 2010 09:44:28 +0000
Subject: OTP-8628 stdlib: correction lists(3)
The documentation of lists:keysort/2 states that the sort is stable.
---
lib/stdlib/doc/src/lists.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'lib/stdlib/doc/src')
diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index 855a7e0244..a273a2301f 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -443,7 +443,7 @@ flatmap(Fun, List1) ->
Returns a list containing the sorted elements of the list
TupleList1. Sorting is performed on the Nth
- element of the tuples.
+ element of the tuples. The sort is stable.
@@ -466,7 +466,7 @@ flatmap(Fun, List1) ->
- keytake(Key, N, TupleList1) -> {value, Tuple, TupleList2}
+ keytake(Key, N, TupleList1) -> {value, Tuple, TupleList2}
| false
Extract an element from a list of tuples
@@ -840,7 +840,7 @@ length(lists:seq(From, To, Incr)) == (To-From+Incr) div Incr
Pred. splitwith/2 behaves as if it is defined
as follows:
-splitwith(Pred, List) ->
+splitwith(Pred, List) ->
{takewhile(Pred, List), dropwhile(Pred, List)}.
Examples:
--
cgit v1.2.3