This is a curiosity question that will hopefully help me understand the Squeak *system* better.<br><br>I have an Aida application in which I find myself doing a lot of list manipulation, and given the reputation Smalltalk has for the strength of it&#39;s collection classes, I felt sure I would find a method SOMEWHERE that exchanged two elements.<br>
<br>So...am I just no good at finding what I&#39;m looking for (swap, exchange, move?), or is it because it is so simple to write something like<br><br>exchange: index1 and: index2<br>&nbsp;&nbsp;&nbsp; |temp|<br>&nbsp;&nbsp;&nbsp; temp := self at: index1.<br>
&nbsp;&nbsp;&nbsp; self at: index1 put: (self at: index2).<br>&nbsp;&nbsp;&nbsp; self at: index2 put: temp.<br><br>that no one would even think of needing to include such behavior?<br><br>Again, just wondering so I can &quot;measure&quot; my understanding of how little I know and better gauge whether I think I can find an answer from the system itself...<br>
<br>Of course, the answer is probably &quot;why don&#39;t you just...&quot; along with a single line...!<br><br>Thanks,<br><br>Rob<br>