<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>