sets in modula
Author Message
sets in modula

Re:
I understand that modula has some built in set functions, but none of the
books
I have on modula seems to discuss it in any useful terms...I'm talking about
things such as finding unions, determining subsets ect...if someone could
fill me in on these commands it would really be helpful...

1. Introduction to Programming Using Modula-2 by Richard J. Sutcliffe
Charles Merrill Pub. (available from the new owners - Maxwell Macmillan)
has a complete discussion of this topic.

2. Sets operations are
union +
intersection *
set difference -
symmetric set difference (EOR) /
containment is indicated by using the relational operators <  <=  >  >=
elementhood by    a IN A

R. Sutcliffe
Trinity Western University

Mon, 05 Sep 1994 22:39:26 GMT
sets in modula

Quote:

>2. Sets operations are
>union +
>intersection *
>set difference -
>symmetric set difference (EOR) /
>containment is indicated by using the relational operators <  <=  >  >=
>elementhood by    a IN A

Unfortunately, Modula-2 still lacks a set complement operator.  As far
as I can tell, even the ISO standard will not correct this oversight.

Tue, 06 Sep 1994 14:30:38 GMT
sets in modula

Quote:

>>2. Sets operations are
>>union +
>>intersection *
>>set difference -
>>symmetric set difference (EOR) /
>>containment is indicated by using the relational operators <  <=  >  >=
>>elementhood by    a IN A

>   Unfortunately, Modula-2 still lacks a set complement operator.  As far
> as I can tell, even the ISO standard will not correct this oversight.

Presumably the set complement could be used to express the "full set"
easily also - by complementing the null set.
(...assuming that that omission from Pascal hasn't been
covered while I wasn't paying attention).

Brian Clausing

Wed, 07 Sep 1994 11:52:46 GMT

 Page 1 of 1 [ 3 post ]

Relevant Pages