From e5d4b0bddc75eda1ad3445d7164171c0a6e8bbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Fri, 5 Feb 2010 08:33:57 +0000 Subject: OTP-8404: Doc: some corrections and improvements in STDLIB --- lib/stdlib/doc/src/file_sorter.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'lib/stdlib/doc/src/file_sorter.xml') diff --git a/lib/stdlib/doc/src/file_sorter.xml b/lib/stdlib/doc/src/file_sorter.xml index b3f4da294c..ccb32659a0 100644 --- a/lib/stdlib/doc/src/file_sorter.xml +++ b/lib/stdlib/doc/src/file_sorter.xml @@ -4,7 +4,7 @@
- 20012009 + 20012010 Ericsson AB. All Rights Reserved. @@ -13,12 +13,12 @@ compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. - + Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. - + file_sorter @@ -83,13 +83,15 @@ An ordering function is antisymmetric, transitive and total. Fun(A, B) should return true if A comes before B in the ordering, false otherwise. + An example of a typical ordering function is less than or equal + to, =</2. Using an ordering function will slow down the sort considerably. The keysort, keymerge and keycheck functions do not accept ordering functions. {unique, bool()}. When sorting or merging files, - only the first of a sequence of terms that compare equal is - output if this option is set to true. The default + only the first of a sequence of terms that compare equal (==) + is output if this option is set to true. The default value is false which implies that all terms that compare equal are output. When checking files for sortedness, a check that no pair of consecutive terms @@ -301,7 +303,7 @@ Value = Term

Sorts tuples on files. The sort is performed on the element(s) mentioned in KeyPos. If two tuples - compare equal on one element, next element according to + compare equal (==) on one element, next element according to KeyPos is compared. The sort is stable.

keysort(N, FileName) is equivalent to -- cgit v1.2.3