v0.1.0
Juan Antonio Breña Moral (40) Chapter Lead, Deejay & Mindstorms/STEAM teacher. Twitter | Github | Linkedin |
|
Purpose: "Riding dragons with innovation & fun" | |
Quote: "Pressure makes diamonds." - George S. Patton Jr. |
Concept | Description |
---|---|
Lazy | Refers to the delaying of the evaluation of an operation until it is needed. |
Eager | An operation is executed as soon as it is encountered. |
Characteristics of Pure Function:
A side effect is any application state change that is observable outside the called function other than its return value.
Equational reasoning lets you transform consistently (based on mathematical functional equations) some functions into another ones
Function composition is a mechanism to combine simple functions to build more complicated ones.
The ability to easily compose functions encourages factoring (breaking apart) functions for maintainability and code reuse.
Referential transparency is generally defined as the fact that an expression, in a program, may be replaced by its value (or anything having the same value) without changing the result of the program.
A monad is just a monoid in the category of endofunctors.
A monad is a design pattern
A monad acts as a container that abstracts away those quirks in the computations, and let us focus more on what we want to do with the contained values.
Place a value into monadic context
Apply a function in monadic context
An effect is the thing a monad handles