User:JimTittsler/Clojure-py
From WikiEducator
Jim Tittsler <jwt@python.net>
Twitter: @jtittsler
“ | A language that doesn't affect the way you think about programming, is not worth knowing. | ” |
(ns hello) (def population {:snakes 10000 :planes 2}) (defn greet [n] (println "Hello" n)) (defn manifest [who] (greet who) (println (/ (:snakes population) (:planes population)) "snakes per plane")) (manifest "Jim")