Skip to content

Instantly share code, notes, and snippets.

@alexy
Forked from aboekhoff/imperative cursor bashing
Created January 16, 2010 00:44
Show Gist options
  • Save alexy/278554 to your computer and use it in GitHub Desktop.
Save alexy/278554 to your computer and use it in GitHub Desktop.
(let [cursor (fetch-eager :where {... whatever ...})
res (transient [])]
(while (.hasNext cursor)
(conj! res (-> cursor .next .toClojure)))
(persistent! res))
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment