Path: csiph.com!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 12:23:53 +0000 Organization: A noiseless patient Spider Lines: 23 Message-ID: <87twlw376u.fsf@bsb.me.uk> References: <19679ed0-c594-4f7e-817c-a72bd5c10411@googlegroups.com> <7925147.1Px1IdcSyd@PointedEars.de> <87powk4rzm.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="7409"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c2rMOHzBHXU0o2ILEsGV5sHmDB8Q8l4U=" Cancel-Lock: sha1:EiR/z4VyrRMCOwTeSguBBmW3QF4= sha1:mJqdMLcX+kxA8/mUIpOksH3aa+Q= X-BSB-Auth: 1.287ffec1031e43a29bfa.20160129122353GMT.87twlw376u.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:29473 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). > x is a member; x is a member; x is a member. > Does that tell you if there is duplication, or not? Remember, there's > no other way to look inside a set. If you are allowed metaphors like "look" and "inside", so am I! -- Ben.