Questions Columns Rows
GitHub icon

Clojure

Clojure - Programming language

< >

Clojure is an open source programming language created in 2007 by Rich Hickey.

Source code:
git clone https://github.com/clojure/clojure
#39on PLDB 16Years Old 82kRepos

Try now: RijuTIOReplit

Clojure ( , like "closure") is a dialect of the Lisp programming language. Clojure is a general-purpose programming language with an emphasis on functional programming. It runs on the Java virtual machine and the Common Language Runtime. Read more on Wikipedia...


Example from Riju:
(println "Hello, world!")
Example from hello-world:
(println "Hello World")
; Hello world in Clojure (defn hello [] (println "Hello world!")) (hello)
Example from Linguist:
(defn rand "Returns a random floating point number between 0 (inclusive) and n (default 1) (exclusive)." ([] (scm* [n] (random-real))) ([n] (* (rand) n)))
Example from Wikipedia:
;; A typical entry point of a Clojure program: ;; `-main` function (defn -main ; name [& args] ; (variable) parameters (println "Hello, World!")) ; body

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Stats Sponsor Traffic Traffic Today Day 267 feedback@pldb.com Logout