Contents | Prev | Next | Index


Set Operators

+ union
- difference (x-y=x*(-y))
* intersection
/ symmetric set difference (x/y=(x-y)+(y-x))

Set operators can be applied to operands of any set type and yield a result of the same set type.

A set constructor defines the value of a set by listing its elements between braces. The elements must be values of the set base type.


Contents | Prev | Next | Index

Canterbury Modula-2 for Java  (Last documentation update Feb 8, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com