cmake build system: visiblity support for clang
[supercollider.git] / Help / Collections / OrderedIdentitySet.html
blob1f47f7590d11cba389bc3879440fe2e11df2063e
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="949.43">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #001bb9}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #0000ff}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; min-height: 16.0px}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px}
16 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
18 span.s1 {font: 18.0px Helvetica}
19 span.s2 {color: #000000}
20 span.s3 {color: #0000ff}
21 span.s4 {color: #0026b4}
22 span.s5 {color: #0024f8}
23 span.s6 {color: #0000bf}
24 span.Apple-tab-span {white-space:pre}
25 </style>
26 </head>
27 <body>
28 <p class="p1"><span class="s1"><b>OrderedIdentitySet<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>a set according to identity</b></p>
29 <p class="p2"><br></p>
30 <p class="p3"><span class="s2"><b>Inherits from: </b><a href="../Core/Object.html"><b>Object</b></a><b> : </b><a href="Collection.html"><b>Collection</b></a></span><b> : </b><a href="Set.html"><b>Set</b></a><b> : </b><a href="IdentitySet.html"><span class="s3"><b>IdentitySet</b></span></a></p>
31 <p class="p2"><br></p>
32 <p class="p1">An OrderedIdentitySet is a collection of objects, no two of which are the same object (aka. "identical").</p>
33 <p class="p1">Most of its methods are inherited. (see <a href="Collection.html"><span class="s4">Collection</span></a> and <a href="Set.html"><span class="s5">Set</span></a> classes).</p>
34 <p class="p1">Unlike <a href="IdentitySet.html"><span class="s3">IdentitySet</span></a>, contents of an OrderedIdentitySet are <b>ordered</b>.<span class="Apple-converted-space"> </span></p>
35 <p class="p2"><br></p>
36 <p class="p4"><span class="s2">See also: <a href="IdentitySet.html">IdentitySet</a>, <a href="List.html">List</a>, <a href="Dictionary.html">Dictionary</a></span></p>
37 <p class="p5"><br></p>
38 <p class="p6"><br></p>
39 <p class="p7"><b>Iteration:</b></p>
40 <p class="p2"><br></p>
41 <p class="p1"><b>do(function)</b></p>
42 <p class="p2"><br></p>
43 <p class="p1"><span class="Apple-tab-span"> </span>Evaluates function for each item in the OrderedIdentitySet.<span class="Apple-converted-space">  </span>You may depend on the order of items.</p>
44 <p class="p1"><span class="Apple-tab-span"> </span>The function is passed two arguments, the item and an integer index.</p>
45 <p class="p2"><br></p>
46 <p class="p8"><span class="Apple-tab-span"> </span><span class="s6">OrderedIdentitySet</span>[1, 2, 3, 300].do { <span class="s6">|item, i|</span> item.postln };</p>
47 </body>
48 </html>