Functional Programming

Functional Programming

Declarative style describes how something is done; step by step. In imperative style (object oriented programming), we describe how something can be done; define what that something is. In declarative styles, we define what the something is and how to calculate the average.

Immutability

Variables are just another name for their values in Funcational Programming

Partial Application

In partial application, the three arguments are provided at different times.

Composition

Take simple functions and combine them into a more complex function.

Functional Purity

If a function returns same value for the same argument every time, then the function is pure

First Class Functions

In OOP, data and functions are treated separately, but in FP, they are all the same

Source

Get in