Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: John Harris Newsgroups: comp.lang.javascript Subject: Re: passing a set of numbers to a function Date: Sat, 30 Jan 2016 10:10:06 +0000 Organization: A noiseless patient Spider Lines: 37 Message-ID: References: <19679ed0-c594-4f7e-817c-a72bd5c10411@googlegroups.com> <7925147.1Px1IdcSyd@PointedEars.de> <87powk4rzm.fsf@bsb.me.uk> <87twlw376u.fsf@bsb.me.uk> <87oac41i30.fsf@bsb.me.uk> Reply-To: jgharris@ic4life.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: mx02.eternal-september.org; posting-host="21ad42a9e7ffec65f0c6a3171a433434"; logging-data="25827"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19z/diowTSxk1y+ezqfGwemjXuZ2vv0jpY=" User-Agent: ForteAgent/7.20.32.1218 Cancel-Lock: sha1:VuH1Zg4WWYhRmGXqN+4AeAZwhaw= Xref: csiph.com comp.lang.javascript:29503 On Fri, 29 Jan 2016 16:11:31 +0000, Ben Bacarisse wrote: >John Harris writes: > >> On Fri, 29 Jan 2016 12:23:53 +0000, Ben Bacarisse >> wrote: >> >>>John Harris writes: >>> >>>> On Fri, 29 Jan 2016 10:09:17 +0000, Ben Bacarisse >>>> wrote: >>>> >>>> >>>>>Sets don't contain duplicates >>>> >>>> >>>> How can you tell? >>> >>>x not in (S \ {x}). |{x}| =3D 1. x in S =3D> |S \ {x}| =3D |S| - 1. = These >>>are inconsistent with my understanding of the metaphor of duplication >>>(though I accept it might have other nuances for other people). >> >> It depends what you mean by |{x}| =3D 1. Possibly you mean >> a) x occurs only once in {x}; >> or possibly you mean >> b) x is a member of {x} but no other object is. > >I intended the conventional meaning of cardinality. > With the conventional meaning, the cardinality being 1 means that there is a bijection between {x} and the set {{}}. Being a bijection relies on membership, not at all on multiplicity. John