<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yiv6765716711"><div id="yui_3_16_0_1_1454859847557_2769"><div id="yui_3_16_0_1_1454859847557_2768" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yui_3_16_0_1_1454859847557_2997">Array.foreach in Javascript runs over the whole array.  Just as [list-drip] <br></div><div id="yui_3_16_0_1_1454859847557_2999" dir="ltr">necessarily drips the entire list.</div><div id="yui_3_16_0_1_1454859847557_3001" dir="ltr"><br></div><div id="yui_3_16_0_1_1454859847557_3003" dir="ltr">-Jonathan<br></div><div id="yiv6765716711yui_3_16_0_1_1454824564198_5290"><span></span></div> <div id="yui_3_16_0_1_1454859847557_2767" class="yiv6765716711qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv6765716711yqt2888383955" id="yiv6765716711yqt50284"></div></div></div></div><div class=".yiv6765716711yahoo_quoted"> <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 Sunday, February 7, 2016 12:23 AM, Matt Barber <brbrofsvl@gmail.com> wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv6765716711y_msg_container"><div id="yiv6765716711"><div><div dir="ltr"><div class="yiv6765716711gmail_default" style="font-family:verdana, sans-serif;">Any iterator should be over a range, not the whole array.</div></div><div class="yiv6765716711gmail_extra"><br clear="none"><div class="yiv6765716711gmail_quote">On Sat, Feb 6, 2016 at 11:52 AM, Jonathan Wilkes via Pd-list <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:pd-list@lists.iem.at" target="_blank" href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>></span> wrote:<br clear="none"><blockquote class="yiv6765716711gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6765716711yqt3082857073" id="yiv6765716711yqt92952"><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 clear="none"><div><br clear="none"><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 clear="none"></span></div><div dir="ltr"><span>number.</span></div><span class="yiv6765716711HOEnZb"><font color="#888888"></font></span><div dir="ltr"><br clear="none"><span></span></div><div dir="ltr"><span>-Jonathan</span></div><div><div class="yiv6765716711h5"> <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 dir="ltr"><font face="Arial" size="2"> On Saturday, February 6, 2016 10:48 AM, Jonathan Wilkes <<a rel="nofollow" shape="rect" ymailto="mailto:jancsika@yahoo.com" target="_blank" href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</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;"><div>Also, since you mentioned documentation:<br clear="none"></div><div dir="ltr"><a rel="nofollow" shape="rect" target="_blank" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr-help.pd">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr-help.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" target="_blank" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr%7E-help.pd">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/expr%7E-help.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" target="_blank" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/fexpr%7E-help.pd">https://github.com/pd-l2ork/pd/blob/master/doc/pddp/fexpr%7E-help.pd</a></div><div dir="ltr"><a rel="nofollow" shape="rect" target="_blank" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_and_value.pd">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" target="_blank" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_functions.pd">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" target="_blank" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_if.pd">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" target="_blank" href="https://github.com/pd-l2ork/pd/blob/master/doc/pddp/all_about_expr_multiline.pd">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 rel="nofollow" shape="rect" ymailto="mailto:pd-list@lists.iem.at" target="_blank" href="mailto:pd-list@lists.iem.at">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 rel="nofollow" shape="rect" ymailto="mailto:sdy@ucsd.edu" target="_blank" href="mailto:sdy@ucsd.edu">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" ymailto="mailto:Pd-list@lists.iem.at" target="_blank" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" target="_blank" href="http://lists.puredata.info/listinfo/pd-list">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" ymailto="mailto:Pd-list@lists.iem.at" target="_blank" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" target="_blank" href="http://lists.puredata.info/listinfo/pd-list">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 clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Pd-list@lists.iem.at" target="_blank" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">
UNSUBSCRIBE and account-management -> <a rel="nofollow" shape="rect" target="_blank" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></body></html>