Clojure ("closure") is a general-purpose programming language that runs on Java and works seamlessly with Java Virtual Machine. More and more developers are turning to Clojure for its simplicity, performance benefits, concurrency features, and immutable data structures. Plus, like other Lisp-based languages, Clojure is easy to learn and super concise. This tutorial is designed to get developers who are new to Clojure quickly up and running with the language and toolset.
Arthur Ulfeldt covers the Leiningen build tool and setting up Clojure to work with the IntelliJ IDEA dev environment. He then reviews the basics of the syntax, including functions, expressions, values, macros, strings, and conditionals. He shows how to structure, compile, and deploy Clojure projects in Leiningen, and pull from Clojure's core library. In the final chapters, Arthur explores references and namespaces and points to resources to learn more about Clojure.
Configuring IntelliJ IDEA
Using REPLs to execute code
Working with simple and composite values
Mastering Clojure macros
Exploring Clojure syntax
Building a Clojure project with Leiningen
Mapping, filtering, and reducing
Binding and destructuring data
Working with identities