<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Any iterator should be over a range, not the whole array.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 6, 2016 at 11:52 AM, Jonathan Wilkes via Pd-list <span dir="ltr"><<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">Also-- since you have assignment operator now, would it make sense to have an iterator function for garrays?<br><div><br><span></span></div><div><span>Something like:</span></div><div dir="ltr"><span>iterate(array_name, expression), where expression is evaluated for each element of the array.  Maybe an i() function to get the iteration <br></span></div><div dir="ltr"><span>number.</span></div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br><span></span></div><div dir="ltr"><span>-Jonathan</span></div></font></span><div><div class="h5"> <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><font face="Arial" size="2"> On Saturday, February 6, 2016 10:48 AM, Jonathan Wilkes <<a href="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>> wrote:<br></font></div>  <br><br> <div><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div>Also, since you mentioned documentation:<br clear="none"></div><div dir="ltr"><a rel="nofollow" shape="rect" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr-help.pd" target="_blank">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr-help.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr%7E-help.pd" target="_blank">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr%7E-help.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/fexpr%7E-help.pd" target="_blank">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/fexpr%7E-help.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_and_value.pd" target="_blank">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_and_value.pd</a><div dir="ltr"><a rel="nofollow" shape="rect" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_functions.pd" target="_blank">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_functions.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_if.pd" target="_blank">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_if.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_multiline.pd" target="_blank">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_multiline.pd</a></div><div dir="ltr"><br clear="none"></div><div>-Jonathan<br clear="none"></div></div><div><span></span></div> <div><br clear="none"><br clear="none"></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div><div dir="ltr"><font face="Arial" size="2"> On Friday, February 5, 2016 8:45 PM, Jonathan Wilkes via Pd-list <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">Sounds great!<br clear="none"><div><span></span></div> <div><br clear="none"><br clear="none"></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div><div dir="ltr"><font face="Arial" size="2"> On Friday, February 5, 2016 8:37 PM, Shahrokh Yadegari <<a href="mailto:sdy@ucsd.edu" target="_blank">sdy@ucsd.edu</a>> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div><div><div dir="ltr"><div><div><div>Dear All,</div><div><br clear="none"></div><div>Attached is a pre-release of Expr 0.5 compiled for Mac os x (compiled on 10.9) and Linux (compiled on an older Cent OS). I have also attached Alexandre's big pd patch which listed the issues, with my comments.</div><div><br clear="none"></div><div>Hopefully I have addressed most of the issues that were brought up and now I am working on a more complete documentation of Expr objects. One open issue is that expr still supports no more than 10 expressions.</div><div><br clear="none"></div><div>I have provided a mechanism for local variables and abstraction substitutions ($0 and $1, $2, etc.) to work. Also, one hopefully useful new feature in V0.5 is the assign  '='  operator. Now you can use expr to assign to "value"s and into arrays. So if you have a variable called 'count'</div><div><br clear="none"></div><div>"value count"</div><div><br clear="none"></div><div>"expr count = count + 1"</div><div><br clear="none"></div><div>will implement a counter, raising the value of count with every "bang"</div><div><br clear="none"></div><div>You can also change values of arrays through the usual syntax.</div><div><br clear="none"></div><div>"expr array1[5] = $f1"</div><div><br clear="none"></div><div>will set the sixth value (counting zero based) of the array "array1" to the incoming float value on inlet 1.</div><div><br clear="none"></div><div>I will write a more informative and comprehensive release notes along with the documentation when I pass the sources to Miller. However, I have made a few changes to the parser and I am looking for alpha-testers who can run the code and let me know if any bugs are found, specially in parsing of complex expressions. </div></div><div><br clear="none"></div><div>I look forward to hearing from whoever uses these objects. Please let me know if you find any bugs. (NOTE: you need to create the links for expr and fexpr~ to get the new version for those as well.)</div><div><br clear="none"></div><div>cheers,</div><div>Shahrokh</div><div><br clear="none"></div>
</div></div></div><br clear="none">_______________________________________________<br clear="none"><a rel="nofollow" shape="rect" href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br clear="none"><br clear="none"><br clear="none"></div></div>  </div> </div>  </div></div></div></div><br clear="none"><div>_______________________________________________<br clear="none"><a rel="nofollow" shape="rect" href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br clear="none"></div><br clear="none"><br clear="none"></div></div>  </div> </div>  </div></div></div></div><br><br></div>  </div> </div>  </div></div></div></div></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>