Chapter 2. Clojure elements: Data structures and functions

This chapter covers

  • Clojure’s core data structures
  • Clojure functions
  • Program flow with Clojure

In the previous chapter, you read about some features of the Clojure language that make it interesting. You saw some code, but it probably looked a little alien. It’s now time to set that right. This chapter and the next address the basics of writing code in Clojure. This one will give an overview of the various data structures that make up the core of the language and walk you through the fundamentals of the structure and flow of Clojure programs. By the end of the next chapter, you’ll be able to read most Clojure code and write your own programs.

2.1. Coding at the REPL

Unlike many ...

Get Clojure in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.