$ whois clojure
Clojure
first released in 2007 · by Rich Hickey
$ guessprog --inspect clojure
- year
- 2007
- paradigm
- functional
- family
- lisp
- memory
- automatic gc
- binding
- dynamic
- safety
- strong
CLOJURE(7)
- AUTHORS
- Rich Hickey
- HISTORY
- Rich Hickey spent about two and a half years working on Clojure largely on his own, without outside funding, before releasing it in 2007. He wanted a modern Lisp that ran on the Java Virtual Machine, could use any Java library, and made concurrent programming safer. Its answer was immutable, persistent data structures by default, with managed references such as atoms for the rare state that must change. In 2020 the Brazilian bank Nubank, one of its largest users, acquired Cognitect, the company that stewards Clojure.
- USAGE
- A niche language with a loyal following, used mainly for backend services and data processing, especially in fintech. ClojureScript brings it to the browser.
- SEE ALSO
- Clojure on Wikipedia ↗
(require '[clojure.string :as str])
(defn top-words [text n]
(->> (re-seq #"\w+" (str/lower-case text))
frequencies
(sort-by val >)
(take n)))
(top-words "The cat and the hat and the bat" 2)
;; => (["the" 3] ["and" 2])
(def counter (atom 0))
(dotimes [_ 5] (swap! counter inc))
@counter ;; => 5