Skip to content

Instantly share code, notes, and snippets.

@logosity
Created May 23, 2013 19:03
Show Gist options
  • Save logosity/5638576 to your computer and use it in GitHub Desktop.
Save logosity/5638576 to your computer and use it in GitHub Desktop.
(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