1. Ok, thanks.<div>2. I thought I had seen this was possible, but couldn't find it(kept searching for 'algebra'). Thanks!<br><br><div class="gmail_quote">On Fri, Oct 14, 2011 at 6:01 PM, Aryeh Friedman <span dir="ltr"><<a href="mailto:aryeh.friedman@gmail.com">aryeh.friedman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Aryeh Friedman</b> <span dir="ltr"><<a href="mailto:aryeh.friedman@gmail.com" target="_blank">aryeh.friedman@gmail.com</a>></span><br>
Date: Fri, Oct 14, 2011 at 6:00 PM<br>Subject: Re: [Cook] Function Arguments (and Algebra)<br>To: Kyle Loveless <<a href="mailto:kyle.p.loveless@gmail.com" target="_blank">kyle.p.loveless@gmail.com</a>><br><br><br>
1. There is likely no other way of direct passing but you can have a list of the names of the input lists and then do a nested loop to read them<br>
2. Yes see the expr built-in function (I think it is limited to the 4 arithmetic operations and even though each expression is infix the complete one is post fix)<br>
<br><div class="gmail_quote"><div><div></div><div>On Fri, Oct 14, 2011 at 5:56 PM, Kyle Loveless <span dir="ltr"><<a href="mailto:kyle.p.loveless@gmail.com" target="_blank">kyle.p.loveless@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hi,<div><br></div><div>In a function I'm writing, I want to pass in multiple lists. Is my instance, one is a list of include folders and the other is a list of object files.</div><div><br></div><div>From what I can tell, I need to explicitly pass the size of each of these lists so the function can know where one list ends and the other starts. Is this right?</div>
<div><br></div><div>Assuming this, I tried to use the "wordlist" function to extract the correct range from the "arg" parameter, depending on the lengths given. The problem I ran into with this is I need to do addition, which I realized I don't know how to do in a cookbook.</div>
<div><br></div><div>So two questions:</div><div>1) If passing lists to a function, do I need to explicitly pass the lengths of the lists, or is there some better way?</div><div>2) Can I do numeric algebra in cookbooks? If so, how?</div>
<div><br></div><div>Thanks!</div><div><br></div><font color="#888888"><div>Kyle</div>
</font><br></div></div>_______________________________________________<br>
Cook-users mailing list<br>
<a href="mailto:Cook-users@lists.auug.org.au" target="_blank">Cook-users@lists.auug.org.au</a><br>
<a href="http://lists.auug.org.au/listinfo/cook-users" target="_blank">http://lists.auug.org.au/listinfo/cook-users</a><br>
<br></blockquote></div><br>
</div><br>
</div></div><br>_______________________________________________<br>
Cook-users mailing list<br>
<a href="mailto:Cook-users@lists.auug.org.au">Cook-users@lists.auug.org.au</a><br>
<a href="http://lists.auug.org.au/listinfo/cook-users" target="_blank">http://lists.auug.org.au/listinfo/cook-users</a><br>
<br></blockquote></div><br></div>