Created
August 12, 2016 20:09
-
-
Save svanellewee/a558fa004e15d1af55fbc6d35a3d484d to your computer and use it in GitHub Desktop.
Emacs lisp destructuring with new seq lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(seq-let [first &rest body ] "hello" | |
(message "%s .. %s" first body)) | |
"104 .. ello" | |
(seq-let [ :hello x :other-val [ a b c ]] '(:hello 12 :other-val [10 32 210]) | |
(message "%S!!!" (list x a b c))) | |
"(12 10 32 210)!!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment