(ns clojure.examples.hello (:gen-class)) (defn Example [] (println (str "Hello World")) (println (+ 1 2))) (Example)
(ns clojure.examples.hello (:gen-class)) (defn hello-world [username] (println (format "Hello, %s" username))) (hello-world "world")
(ns clojure.examples.hello (:gen-class)) (def nest { :a "eh" :b {:dog "fido" :cat "fluffy"} }) (nest :b) (get-in nest [:b :cat])
(ns clojure.examples.example (:gen-class)) (defn example [] (def demokeys (hash-map "z" "1" "b" "2" "a" "3")) (println (dissoc demokeys "b"))) (example)
(ns clojure.examples.hello (:gen-class)) (defn mfak [n] (if (== 0 n) 1 (* (mfak [- n 1]) n) ) ) (defn -main [&args] (mfak 6) )
Unable to open file!