Skip to content

Instantly share code, notes, and snippets.

@ibdknox
Created December 26, 2011 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibdknox/1522225 to your computer and use it in GitHub Desktop.
Save ibdknox/1522225 to your computer and use it in GitHub Desktop.
dude example
(def my-dirs [:north :north :east :east :south :south :west :west])
(defn moves [& dirs]
(doseq [d dirs]
(println "Moving:" d)
(move d)))
(apply moves my-dirs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment