Intro to FP

History

Principles of FP

Pure Function (referentially transparent function):

  1. Given a specific input x, will return same output y
  2. Computes output exclusively on input parameters without relying on or modifying external data

Make code easier, debug, test, parallelism, compiler optimization, formally analyze and prove

Note that in FP, order of exec importance is low. How?

No side effects, everything is lazy.

Haskell Introduction