Skip to content

Instantly share code, notes, and snippets.

@jaju
Forked from anonymous/gist:4453240
Created January 5, 2013 01:10
Show Gist options
  • Save jaju/4459005 to your computer and use it in GitHub Desktop.
Save jaju/4459005 to your computer and use it in GitHub Desktop.
;;; Some NS which has the gen-class directive
(defn -main-that-wont-work []
(let [coll (some-collection-returning-function)]
(for [c coll]
(transform c)
)
)
)
;;; Take 2
(defn -main-that-works []
(let [coll (some-collection-returning-function)
transformed (map transform coll)]
;;; nothing to do
transformed
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment