Skip to content

Instantly share code, notes, and snippets.

@svanellewee
Created August 12, 2016 20:09
Show Gist options
  • Save svanellewee/a558fa004e15d1af55fbc6d35a3d484d to your computer and use it in GitHub Desktop.
Save svanellewee/a558fa004e15d1af55fbc6d35a3d484d to your computer and use it in GitHub Desktop.
Emacs lisp destructuring with new seq lib
(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