<div dir="ltr">I am sorry: the previous email was accidentally sent incomplete!<div><div class="gmail_extra">The situation is as follows:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">I stumbled upon the following behavior when experimenting with set pattern matching in Cmpl: </div><div class="gmail_extra"><br></div><div class="gmail_extra">(part of my 'parameters' section)</div><div class="gmail_extra"><br></div><div class="gmail_extra">        A := set( [1,1,2],[1,2,2],[1,4,8],[2,2,5],[2,3,1],[2,4,9],[3,1,1],[3,3,3] );</div><div class="gmail_extra"><span class="" style="white-space:pre">       </span>B := set( A *> [*,*,/] );</div><div class="gmail_extra"><span class="" style="white-space:pre"> </span>{ i in B: echo i; }</div><div class="gmail_extra">        { [i,j] in B: echo i + "," + j; }</div><div class="gmail_extra"><br></div><div class="gmail_extra">The first loop prints </div><div class="gmail_extra">[1, 1]</div><div class="gmail_extra">[1, 2]</div><div class="gmail_extra">[1, 4]</div><div class="gmail_extra">[2, 2]</div><div class="gmail_extra">[2, 3]</div><div class="gmail_extra">[2, 4]</div><div class="gmail_extra">[3, 1]</div><div class="gmail_extra">[3, 3]</div><div class="gmail_extra"><br></div><div class="gmail_extra">However the second one produces an error with the message "rank of iteration tupel doesn't match".</div><div class="gmail_extra">Is there any way to access the first and second elements of the resulting 2-tuples (in B) individually? </div><div class="gmail_extra"><br></div><div class="gmail_extra">Best regards,</div><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span style="font-family:monospace,monospace"><font color="#888888"><pre cols="72">--<br>Dr. Maria Giatsoglou<br>Tel: +306932241224<br>Skype: maria.giatsoglou<br>LinkedIn:<span> <a href="https://gr.linkedin.com/in/mariagiatsoglou" target="_blank">https://gr.linkedin.com/in/mariagiatsoglou</a></span></pre></font></span></font><font size="2"><span style="font-family:monospace,monospace"></span></font></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Apr 14, 2016 at 11:32 AM, Maria Giatsoglou <span dir="ltr"><<a href="mailto:maria.giatsoglou@gmail.com" target="_blank">maria.giatsoglou@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>I stumbled upon the following behavior when experimenting with set pattern matching in Cmpl: </div><div><br></div><div>(<i>part of my 'parameters' section</i>)</div><div><div><br></div><div>       <font face="times new roman, serif"> A := set( [1,1,2],[1,2,2],[1,4,8],[2,2,5],[2,3,1],[2,4,9],[3,1,1],[3,3,3] );</font></div><div><font face="times new roman, serif"><span style="white-space:pre-wrap">      </span>B := set( A *> [*,*,/] );</font></div><div><font face="times new roman, serif"><span style="white-space:pre-wrap">    </span>{ i in B: echo i; }</font></div></div><div><span style="font-family:'times new roman',serif">        { [i,j] in B: echo i + "," + j; }</span><font face="times new roman, serif"><br></font></div><div><br></div><div>The first loop prints </div><div><br></div><div><br></div><div><div> rank of iteration tupel doesn't match</div></div><div><br></div><div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="2"><span style="font-family:monospace,monospace"><font color="#888888"><pre cols="72">--<br>Dr. Maria Giatsoglou<br>Tel: <a href="tel:%2B306932241224" value="+306932241224" target="_blank">+306932241224</a><br>Skype: maria.giatsoglou<br>LinkedIn:<span> <a href="https://gr.linkedin.com/in/mariagiatsoglou" target="_blank">https://gr.linkedin.com/in/mariagiatsoglou</a></span></pre></font></span></font><font size="2"><span style="font-family:monospace,monospace"></span></font></div></div></div></div></div></div></div>
</div></div>
</blockquote></div><br></div></div></div>