-
-
Save jaju/4459005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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