O'Reilly logo

Clojure in Action, Second Edition by Amit Rathore and Francis Avila

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required