O'Reilly logo

Clojure for Finance by Timothy Washington

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

First order functions

The central artifact of a functional programming language is the function, also called a lambda. It is the primary way of doing things and is itself a value that can be manipulated in the given language. Clojure has many functions that in turn operate on or change other functions. Here, we will discuss a few.

The partial function takes a function of any number of arguments. What it does is apply the function, but only to a partial set of arguments. A new function is returned, which is a partial application of the original. So, a caller now just has to call the function with the remaining arguments. There are some instances in your code where you will want to partially apply a function in one part and will only be able to complete ...

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