JavaScript

Jan
27
Nest.JS | Monads -> Identity

Nest.JS | Monads -> Identity

The Identity monad is a simple monad that wraps a value without applying any additional behavior or computation. It is often used as a…
2 min read
Jan
27
Nest.JS | Monads -> Maybe

Nest.JS | Monads -> Maybe

The Maybe monad, also known as the Option monad, is a monad that is used to represent computations that may or may not have a value. It is…
2 min read
Jan
27
Nest.JS | Monads -> Maybe -> Make

Nest.JS | Monads -> Maybe -> Make

It is a factory method that takes the inner value and wraps it into the appropriate Monad instance. The make method is often used as an…
2 min read
Jan
27
Nest.JS | Monads -> Either

Nest.JS | Monads -> Either

The Either monad, also known as the Result monad, is a monad that is used to represent computations that can have one of two possible…
2 min read
Jan
27
Nest.JS | Monads -> List

Nest.JS | Monads -> List

The List monad, also known as the Array monad, is a monad that is used to represent computations that can have multiple possible outcomes…
2 min read
Jan
27
Nest.JS | Monads -> IO

Nest.JS | Monads -> IO

The IO monad, also known as the “Input/Output monad,” is a functional programming concept that allows you to separate the description of an…
2 min read
Jan
27
Nest.JS | Monads -> Reader

Nest.JS | Monads -> Reader

The Reader monad, also known as the “Environment monad,” is a functional programming concept that allows you to pass an environment, or a…
2 min read
Jan
27
Nest.JS | Monads -> State

Nest.JS | Monads -> State

The State monad is a functional programming concept that allows you to manage state in a functional, immutable way. It allows you to write…
2 min read
Jan
27
Nest.JS | Monads

Nest.JS | Monads

A monad is a design pattern and a mathematical structure that is used to model computations in a functional programming paradigm. It is a…
1 min read