Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.straub-nv.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <1465780.qEpqW9jFZT@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Fri, 09 Nov 2012 02:26:51 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <1626786.ztarQMnBzF@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 51 NNTP-Posting-Date: 09 Nov 2012 02:26:51 CET NNTP-Posting-Host: 66b00443.newsspool2.arcor-online.net X-Trace: DXC=>VH4ZcanK_k;iVb[J9ZZP`A9EHlD;3Ycb4Fo<]lROoRa8kFdWjfmTbDZm8W4\YJNlJ`:FmdeL>K`iU3I74H>BY`e:>JCEmZX>b X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:17094 Asen Bozhilov wrote: > Thomas 'PointedEars' Lahn wrote: >> Asen Bozhilov wrote: >> > I have seen different approach to find the unique values in array. >> > ECMAScript6 will come with Set constructor and this would be easy to >> > achieve. >> >> That would be good. Reference? > > See the es-wiki harmony proposals: > ACK. > If you are interesting SpiderMonkey already has partial support of ES6 > Set: > Global_Objects/Set> The Matrix has you. > Also there is a working draft of ES6: > > > There are many new things, should be discussed in separate threads. ACK. >> So you need a Map that can have objects as keys. >> >> >> > > Thanks, I will take a look at your source. You might also want to have a look at jsx.python.set(), which now uses jsx.map.Map if possible (and will probably prefer using Set() above that later): PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee