Skip to content

Instantly share code, notes, and snippets.

View davegolland's full-sized avatar

Dave Golland davegolland

  • San Francisco, CA
View GitHub Profile
@devn
devn / Destructuring Examples.clj
Created June 15, 2010 09:27
Destructuring Examples
;;; All Kinds of Destructuring ;;;
(let [foo 1] foo)
; => 1
(let [[foo bar] [1 2 3]] [foo bar])
; => [1 2]
(let [[foo bar & baz] [1 2 3]] [foo bar baz])
; => [1 2 (3)]