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

Chapter 2. First Principles and a Useful Way to Think

We looked at central notions of computation and finance in the last chapter so that we could come up with the best approach to represent our financial data. In essence, you're learning how to fish. We're going to build on this knowledge right away and start developing an equation to generate price data. At each step, we're going to look more closely at core functional programming features. This should give you a solid understanding of important concepts in their immediate context.

In this chapter, we will cover the following topics:

  • Function evaluation
  • First-class functions
  • Lazy evaluation
  • Basic Clojure functions and immutability
  • Namespaces and creating our first function
  • The Read-Eval-Print-Loop ...

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