Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: passing a set of numbers to a function Date: Fri, 29 Jan 2016 16:11:31 +0000 Organization: A noiseless patient Spider Lines: 30 Message-ID: <87oac41i30.fsf@bsb.me.uk> References: <19679ed0-c594-4f7e-817c-a72bd5c10411@googlegroups.com> <7925147.1Px1IdcSyd@PointedEars.de> <87powk4rzm.fsf@bsb.me.uk> <87twlw376u.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="26494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FopXZ+v+7ZQ1RTdx6wC1w+rHWLSvYHOI=" Cancel-Lock: sha1:tPxlsqZLk1eJNvObO6rHhLVSyME= sha1:KBjt1KmVxg4bxrlFJnHq/KQtmxc= X-BSB-Auth: 1.ba1d471d16ba5c0db45f.20160129161131GMT.87oac41i30.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:29481 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}| = 1. x in S => |S \ {x}| = |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}| = 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. -- Ben.