Chapter 8. More on functional programming

This chapter covers

  • A refresher on higher-order functions
  • Partial application of functions
  • Lexical closures
  • Traditional object-oriented programming (OOP) in Clojure

So far you’ve seen a lot of the Clojure programming language, and you’ve used it to write a good number of functions. Because it’s a functional programming language, understanding and mastering the functional programming paradigm is key to being successful with it. In this chapter, we’ll explore this topic some more.

Instead of approaching this from, say, a mathematical (or plain theoretical) standpoint, we’ll review code to explore some of the main ideas. We’ll start by implementing a few common higher-order functions that you often ...

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.