Skip to content

Instantly share code, notes, and snippets.

@fredyr
Created January 13, 2014 13:07
Show Gist options
  • Save fredyr/8399958 to your computer and use it in GitHub Desktop.
Save fredyr/8399958 to your computer and use it in GitHub Desktop.
(loop [foo (seq [])
bar [1 2 3]]
(if (empty? bar)
foo
(recur (conj foo (first bar)) (next bar))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment