Clojure is an actively used programming language created in 2007. 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...

12Years Old 178,357Users 502Jobs

Example code from the Hello World Collection:

; Hello world in Clojure

(defn hello []
  (println "Hello world!"))

(hello)

Example code 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 code from Wikipedia:

([382 318 466 963 619 22 21 273 45 596] [808 639 804 471 394 904 952 75 289 778] ...
[484 216 622 139 651 592 379 228 242 355])
Distinct: 1000

Last updated July 8th, 2019