hello world in clojure
This is an example of a "Hello, World!" program in Clojure:
(ns hello-world.core
(:gen-class))
(defn -main
"I print 'Hello, World!'"
[& args]
(println "Hello, World!"))
To run this program, you can use the Clojure REPL or save it to a file with a .clj
extension, and then execute it using the clojure
command followed by the name of the file.