Created
May 23, 2013 19:03
-
-
Save logosity/5638576 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
(defn listFruits [fruits] | |
(doall (map println (sort fruits)))) | |
(def fruits ["Banana", "Orange", "Apple", "Mango"]) | |
(listFruits fruits) ;prints Apple Banana Mango Orange each on their own line | |
(println fruits) ;["Banana" "Orange" "Apple" "Mango"] yay!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment