diff options
author | Hans Bolinder <[email protected]> | 2010-05-12 09:44:28 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-05-12 09:44:28 +0000 |
commit | d3109217f88e05c7b57d919a4f49ec57549f4ddd (patch) | |
tree | 3d7f6b572f25a06ab93c385825d85c884184efcd /lib/stdlib/doc/src | |
parent | dd908223cbf62adfeaefac982c4087cd35bb1805 (diff) | |
download | otp-d3109217f88e05c7b57d919a4f49ec57549f4ddd.tar.gz otp-d3109217f88e05c7b57d919a4f49ec57549f4ddd.tar.bz2 otp-d3109217f88e05c7b57d919a4f49ec57549f4ddd.zip |
OTP-8628 stdlib: correction lists(3)
The documentation of lists:keysort/2 states that the sort is stable.
Diffstat (limited to 'lib/stdlib/doc/src')
-rw-r--r-- | lib/stdlib/doc/src/lists.xml | 6 |
1 files changed, 3 insertions, 3 deletions
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) -> <desc> <p>Returns a list containing the sorted elements of the list <c>TupleList1</c>. Sorting is performed on the <c>N</c>th - element of the tuples.</p> + element of the tuples. The sort is stable.</p> </desc> </func> <func> @@ -466,7 +466,7 @@ flatmap(Fun, List1) -> </desc> </func> <func> - <name>keytake(Key, N, TupleList1) -> {value, Tuple, TupleList2} + <name>keytake(Key, N, TupleList1) -> {value, Tuple, TupleList2} | false</name> <fsummary>Extract an element from a list of tuples</fsummary> <type> @@ -840,7 +840,7 @@ length(lists:seq(From, To, Incr)) == (To-From+Incr) div Incr</code> <c>Pred</c>. <c>splitwith/2</c> behaves as if it is defined as follows:</p> <code type="none"> -splitwith(Pred, List) -> +splitwith(Pred, List) -> {takewhile(Pred, List), dropwhile(Pred, List)}.</code> <p>Examples:</p> <pre> |