Skip to content

Instantly share code, notes, and snippets.

@ThomasCrevoisier
Created December 17, 2014 21:59
Show Gist options
  • Save ThomasCrevoisier/aa2f857bff17978f5036 to your computer and use it in GitHub Desktop.
Save ThomasCrevoisier/aa2f857bff17978f5036 to your computer and use it in GitHub Desktop.
Simple example of ClojureScript
(ns poney.world)
(defn hastalavistaify [xs]
(str "Hasta la vista " xs))
(hastalavistaify "Thomas") ;;; Outputs : "Hasta la vista Thomas"
(map hastalavistaify ["Thomas" "poney" "mutability"]) ;;; Outputs : ("Hasta la vista Thomas" "Hasta la vista poney" "Hasta la vista mutability")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment