<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Oh! Cool. :)</p>
<p><br>
</p>
<p>Well then the only proposition I have is adding it to the abstract collection class as iterating over combinations&nbsp;is not specific to a sequenceable collection. Or am I missing something here?<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> squeak-dev-bounces@lists.squeakfoundation.org &lt;squeak-dev-bounces@lists.squeakfoundation.org&gt; im Auftrag von Nicolas Cellier &lt;nicolas.cellier.aka.nice@gmail.com&gt;<br>
<b>Gesendet:</b> Freitag, 26. Februar 2016 19:31<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Collections-pre.679.mcz</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">But this already exist, at least for SequenceableCollection, try:<br>
<br>
(1 to: 4) combinations: 2 atATimeDo: [:e | Transcript cr; show: e printString] <br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-02-26 16:05 GMT&#43;01:00 <span dir="ltr">&lt;<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
A new version of Collections was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Collections-pre.679.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Collections-pre.679.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-pre.679<br>
Author: pre<br>
Time: 26 February 2016, 4:04:56.205127 pm<br>
UUID: 2ac5821c-d6f5-418c-ab07-ed3c2b9de62c<br>
Ancestors: Collections-eem.678<br>
<br>
This is a new iteration method which allows the iteration over asymmetric pairs. I have found this useful in game collision detections or duplicate detections. Alternatively we might want to take a second collection as input and create asymmetric pairs from
 self and this second collection.<br>
<br>
=============== Diff against Collections-eem.678 ===============<br>
<br>
Item was added:<br>
&#43; ----- Method: Collection&gt;&gt;asymmetricPairsDo: (in category 'accessing') -----<br>
&#43; asymmetricPairsDo: aBlock<br>
&#43;<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;| iterationCollection currentElement |<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;iterationCollection := self copy.<br>
&#43;<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;[currentElement := iterationCollection anyOne.<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;iterationCollection remove: currentElement.<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;iterationCollection isEmpty not]<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;whileTrue: [ iterationCollection<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;do: [:element | aBlock value: currentElement value: element]].!<br>
<br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>