Path: utzoo!utgpu!water!watmath!clyde!motown!vilya!lcuxlm!whuts!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!unido!sbsvax!greim
From: greim@sbsvax.UUCP (Michael Greim)
Newsgroups: comp.lang.c
Subject: Re: Sets in C (?) :idea from PASCAL
Summary: I have one too
Message-ID: <597@sbsvax.UUCP>
Date: 17 Aug 88 16:31:07 GMT
References: <8808121452.AA14152@ucbvax.berkeley.edu> <2732@boulder.Colorado.EDU>
Organization: Universitaet des Saarlandes, Saarbruecken, West Germany
Lines: 26

In article <8808121452.AA14152@ucbvax.berkeley.edu> U23405@UICVM.BITNET writes:
, swarbric@tramp.Colorado.EDU (Frank Swarbrick) writes:
< Well, I have written three functions called inset(), setplus(), and setminus()
< which use arrays of any type as sets.  inset() tells you if something is in
< your set, setplus() adds something to your set, and setminus() takes something
< out.  It's not as good as Pascal's real sets, but it's OK.  I could send you
< them if you like.

I have a set of functions too. You can do all the usual set operations on
any data type which convertible to integer. This may not be what you
want, but if you are interested I can send you a copy. (First I will
have to improve the code, though :-)

	-mg
-- 
UUCP:  ...!uunet!unido!sbsvax!greim   | Michael T. Greim
       or greim@sbsvax.UUCP           | Universitaet des Saarlandes
CSNET: greim%sbsvax.uucp@Germany.CSnet| FB 10 - Informatik (Dept. of CS)
ARPA:  greim%sbsvax.uucp@uunet.UU.NET | Bau 36, Im Stadtwald 15
voice: +49 681 302 2434               | D-6600 Saarbruecken 11, West Germany

# include