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 type SET only and yield a result of type SET. The unary minus sign denotes the complement of x; that is, -x denotes the set of integers between 0 and MAX(SET) (0..31 for this compiler) that are not elements of x.

A set constructor defines the value of a set by listing its elements between braces. The elements must be integers in the range 0..MAX(SET) (0..31 for this compiler). A range a..b denotes all integers in the interval [a,b].


Contents | Prev | Next | Index

Canterbury Oberon-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