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/sets.xml | 161 +++++++++++++++++++++++++------------------- 1 file changed, 91 insertions(+), 70 deletions(-) (limited to 'lib/stdlib/doc/src/sets.xml') diff --git a/lib/stdlib/doc/src/sets.xml b/lib/stdlib/doc/src/sets.xml index 531d18fbef..f7668af1ed 100644 --- a/lib/stdlib/doc/src/sets.xml +++ b/lib/stdlib/doc/src/sets.xml @@ -24,21 +24,23 @@ sets Robert Virding - Bjarne Dacker + Bjarne Däcker 1 Bjarne Däcker - 99-07-27 + 1999-07-27 A - sets.sgml + sets.xml sets - Functions for Set Manipulation + Functions for set manipulation.

Sets are collections of elements with no duplicate elements. - The representation of a set is not defined.

-

This module provides exactly the same interface as the module - ordsets but with a defined representation. One difference is + The representation of a set is undefined.

+ +

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

@@ -47,151 +49,170 @@ -

As returned by new/0.

+

As returned by + new/0.

+ - - Return an empty set + + Add an element to a Set. -

Returns a new empty set.

+

Returns a new set formed from Set1 with + Element inserted.

+ - - Test for a Set + + Remove an element from a Set. -

Returns true if Set is a set of - elements, otherwise false.

+

Returns Set1, but with + Element removed.

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

Returns the number of elements in Set.

+

Filters elements in Set1 with boolean function + Pred.

+ - - Convert a Setinto a list + + Fold over set elements. -

Returns the elements of Set as a list. - The order of the returned elements is undefined.

+

Folds Function over every element in + Set and returns the final value of the + accumulator. The evaluation order is undefined.

+ - Convert a list into a Set + Convert a list into a Set.

Returns a set of the elements in List.

+ - - Test for membership of a Set + + Return the intersection of a list of Sets. -

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

+

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

+ - - Add an element to a Set + + Return the intersection of two Sets. -

Returns a new set formed from Set1 with - Element inserted.

+

Returns the intersection of Set1 and + Set2.

+ - - Remove an element from a Set + + Check whether two Sets are disjoint. -

Returns Set1, but with Element removed.

+

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

+ - - Return the union of two Sets + + Test for membership of a Set. -

Returns the merged (union) set of Set1 and - Set2.

+

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

+ - - Return the union of a list of Sets + + Test for a Set. -

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

+

Returns true if Set is a set of + elements, otherwise false.

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

Returns the intersection of Set1 and - Set2.

+

Returns true when every element of Set1 is + also a member of Set2, otherwise false.

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

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

+

Returns a new empty set.

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

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

+

Returns the number of elements in Set.

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

Returns only the elements of Set1 which are not +

Returns only the elements of Set1 that are not also elements of Set2.

+ - - Test for subset + + Convert a Setinto a list. -

Returns true when every element of Set11 is - also a member of Set2, otherwise false.

+

Returns the elements of Set as a list. + The order of the returned elements is undefined.

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

Fold Function over every element in Set - returning the final value of the accumulator. - The evaluation order is undefined.

+

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

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

Filter elements in Set1 with boolean function - Pred.

+

Returns the merged (union) set of Set1 and + Set2.

See Also -

ordsets(3), - gb_sets(3)

+

gb_sets(3), + ordsets(3)

-- cgit v1.2.3