Skip to content

Instantly share code, notes, and snippets.

@technomancy
Created March 17, 2010 18:12
Show Gist options
  • Select an option

  • Save technomancy/335533 to your computer and use it in GitHub Desktop.

Select an option

Save technomancy/335533 to your computer and use it in GitHub Desktop.
(defn weird [& b]
(println b)
(when (< (first b) 2)
(recur (inc (first b)))))
(weird 1)
;; the first time you run it, b is an argseq as expected: (1)
;; when you recur, b is bound to 2 rather than (2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment