Translating math into code with examples in Java, Racket, Haskell and Python

discrete-mathematicsfunctional-programmingtype-theorycoding-patterns

Abstraction: Mapping discrete math structures to immutable functional code patterns

Key points:

Connections: Haskell · Functional Programming · Discrete Mathematics · Type Theory

Source: http://matt.might.net/articles/discrete-math-and-code/