Skip to content

Instantly share code, notes, and snippets.

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