Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this Book
1. Getting started
Chapter 1. Introduction to Clojure
1.1. What is Clojure?
1.1.1. Clojure—the reincarnation of Lisp
1.1.2. How we got here
1.1.3. How this book teaches Clojure
1.2. Understanding Clojure syntax
1.2.1. XML and parentheses
1.2.2. Lists, vectors, and hashes
1.3. The sources of Clojure’s power
1.3.1. Clojure and Lisp
1.3.2. Clojure and functional programming
1.3.3. Clojure and the JVM
1.3.4. Clojure as a Lisp
1.3.5. More advantages of Clojure
1.3.6. Clojure as a functional language
1.3.7. Clojure as a JVM-based Language
1.4. Clojure—beyond object orientation
1.5. Summary
Chapter 2. A whirlwind tour
2.1. Getting started
2.1.1. Installing Clojure
2.1.2. The Clojure REPL
2.1.3. Hello, world
2.1.4. doc and find-doc
2.1.5. A few more points on Clojure syntax
2.2. Program structure
2.2.1. Functions
2.2.2. The let form
2.2.3. Side effects with do
2.2.4. try/catch/finally and throw
2.2.5. Reader macros
2.3. Program flow
2.3.1. Conditionals
2.3.2. Functional iteration
2.3.3. The threading macros
2.4. Clojure data structures
2.4.1. nil, truth, and falsehood
2.4.2. Chars, strings, and numbers
2.4.3. Keywords and symbols
2.4.4. Sequences