Skip to content

Instantly share code, notes, and snippets.

@lucasas
Created May 31, 2015 14:21
Show Gist options
  • Save lucasas/f6df849adffa3c6c7efc to your computer and use it in GitHub Desktop.
Save lucasas/f6df849adffa3c6c7efc to your computer and use it in GitHub Desktop.
(def elements [0 1 2 3 5])
(let [[head & tail] elements]
(println "head: " head " tail: " tail)) ; => "head: 0 tail: (1 2 3 5)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment