<div dir="ltr">Nice, thanks for sharing this! I will certainly add it to my base S7 files for scheme-for-max!<div><br></div><div>I have been meaning to port over Clojure&#39;s thread-first and thread-last macros but haven&#39;t got to it yet as we are in the process of trying to buy and sell a house and move. Which to the surprise of no one who&#39;s done it, I&#39;m sure, is vastly more time consuming than I expected. Ugh. :-/</div><div><br></div><div>thanks for sharing it</div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 10, 2020 at 3:30 AM Christos Vagias &lt;<a href="mailto:chris.actondev@gmail.com">chris.actondev@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>Wanted to share with you a macro I wrote about let (and let*) with</div><div>list destructuring. Something similar to the destructuring-bind as seen</div><div>in stuff.scm</div><div>I missed this functionality from clojure.</div><div><br></div><div>Example usage:</div><div><br></div><div>;; letd: mnemonic: let-destructure</div><div> (letd ((a 1)<br>        (b 2)<br>        ((c d) (list (+ 1 2) 4)))<br>       (list a b c d ))</div><div> ;; =&gt; (1 2 3 4)</div><div><br></div><div>(letd* ((a 1)<br>       (b 2)<br>       ((c d) (list (+ 1 2) 4))<br>       (e (+ 1 d)))<br>        (list a b c d e))</div><div>;; =&gt;  ;; (1 2 3 4 5)</div><div><br></div><div><div>Note: clojure also has destructuring for maps etc. Didn&#39;t have this need yet,</div><div>but guess the macro could be modified to accommodate destructuring<br></div><div>hashmaps, inlets etc.</div><div><br></div></div></div>
_______________________________________________<br>
Cmdist mailing list<br>
<a href="mailto:Cmdist@ccrma.stanford.edu" target="_blank">Cmdist@ccrma.stanford.edu</a><br>
<a href="https://cm-mail.stanford.edu/mailman/listinfo/cmdist" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/cmdist</a><br>
</blockquote></div>