(defn bmi-metric [height weight] (/ weight (* height height)))
user=> (bmi-metric 1.8 90.0)
(defn bmi [height weight] (* 703.00 ( / weight (* height height))))
user=> (bmi 72 200)
formula via http://www.whathealth.com/bmi/formula.html
user=> (println “Hello World!”)
Bye for now!
check out ->
Leiningen is the easiest way to use Clojure. With a focus on project automation and declarative configuration, it gets out of your way and lets you focus on your code.
Build Your Functional Skills One Idea at a Time, by Russ Olsen