From 68d53c01b0b8e9a007a6a30158c19e34b2d2a34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 18 May 2016 15:53:35 +0200 Subject: Update STDLIB documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language cleaned up by the technical writers xsipewe and tmanevik from Combitech. Proofreading and corrections by Björn Gustavsson and Hans Bolinder. --- lib/stdlib/doc/src/ordsets.xml | 161 ++++++++++++++++++++++++----------------- 1 file changed, 93 insertions(+), 68 deletions(-) (limited to 'lib/stdlib/doc/src/ordsets.xml') diff --git a/lib/stdlib/doc/src/ordsets.xml b/lib/stdlib/doc/src/ordsets.xml index 0d5d618b66..148281fcf7 100644 --- a/lib/stdlib/doc/src/ordsets.xml +++ b/lib/stdlib/doc/src/ordsets.xml @@ -24,23 +24,26 @@ ordsets Robert Virding - Bjarne Dacker + Bjarne Däcker 1 Bjarne Däcker - 99-07-27 + 1999-07-27 A - ordsets.sgml + ordsets.xml ordsets - Functions for Manipulating Sets as Ordered Lists + Functions for manipulating sets as ordered lists. +

Sets are collections of elements with no duplicate elements. An ordset is a representation of a set, where an ordered list is used to store the elements of the set. An ordered list is more efficient than an unordered list.

-

This module provides exactly the same interface as the module - sets but with a defined representation. One difference is + +

This module provides the same interface as the + sets(3) module + but with a defined representation. One difference is that while sets considers two elements as different if they do not match (=:=), this module considers two elements as different if and only if they do not compare equal (==).

@@ -49,146 +52,168 @@ -

As returned by new/0.

+

As returned by + new/0.

+ - - Return an empty set + + Add an element to an Ordset. -

Returns a new empty ordered set.

+

Returns a new ordered set formed from Ordset1 + with Element inserted.

+ - - Test for an Ordset + + Remove an element from an Ordset. -

Returns true if Ordset is an ordered set of - elements, otherwise false.

+

Returns Ordset1, but with + Element removed.

+ - - Return the number of elements in a set + + Filter set elements. -

Returns the number of elements in Ordset.

+

Filters elements in Ordset1 with boolean function + Pred.

+ - - Convert an Ordsetinto a list + + Fold over set elements. -

Returns the elements of Ordset as a list.

+

Folds Function over every element in + Ordset and returns the final value of the + accumulator.

+ - Convert a list into an Ordset + Convert a list into an Ordset. -

Returns an ordered set of the elements in List.

+

Returns an ordered set of the elements in List. +

+ - - Test for membership of an Ordset + + Return the intersection of a list of Ordsets -

Returns true if Element is an element of - Ordset, otherwise false.

+

Returns the intersection of the non-empty list of sets.

+ - - Add an element to an Ordset + + Return the intersection of two Ordsets. -

Returns a new ordered set formed from Ordset1 with - Element inserted.

+

Returns the intersection of Ordset1 and + Ordset2.

+ - - Remove an element from an Ordset + + Check whether two Ordsets are disjoint. -

Returns Ordset1, but with Element removed.

+

Returns true if Ordset1 and + Ordset2 are disjoint (have no elements in common), + otherwise false.

+ - - Return the union of two Ordsets + + Test for membership of an Ordset. -

Returns the merged (union) set of Ordset1 and - Ordset2.

+

Returns true if Element is an element of + Ordset, otherwise false.

+ - - Return the union of a list of Ordsets + + Test for an Ordset. -

Returns the merged (union) set of the list of sets.

+

Returns true if Ordset is an ordered set + of elements, otherwise false.

+ - - Return the intersection of two Ordsets + + Test for subset. -

Returns the intersection of Ordset1 and - Ordset2.

+

Returns true when every element of Ordset1 + is also a member of Ordset2, otherwise + false.

+ - - Return the intersection of a list of Ordsets + + Return an empty set. -

Returns the intersection of the non-empty list of sets.

+

Returns a new empty ordered set.

+ - - Check whether two Ordsets are disjoint + + Return the number of elements in a set. -

Returns true if Ordset1 and - Ordset2 are disjoint (have no elements in common), - and false otherwise.

+

Returns the number of elements in Ordset.

+ - Return the difference of two Ordsets + Return the difference of two Ordsets. -

Returns only the elements of Ordset1 which are not +

Returns only the elements of Ordset1 that are not also elements of Ordset2.

+ - - Test for subset + + Convert an Ordset into a list. -

Returns true when every element of Ordset1 is - also a member of Ordset2, otherwise false.

+

Returns the elements of Ordset as a list.

+ - - Fold over set elements + + Return the union of a list of Ordsets. -

Fold Function over every element in Ordset - returning the final value of the accumulator.

+

Returns the merged (union) set of the list of sets.

+ - - Filter set elements + + Return the union of two Ordsets. -

Filter elements in Ordset1 with boolean function - Pred.

+

Returns the merged (union) set of Ordset1 and + Ordset2.

See Also -

gb_sets(3), - sets(3)

+

gb_sets(3), + sets(3)

-- cgit v1.2.3