arrow-core / arrow.core.extensions.andthen.monad / arrow.core.AndThen / monad

monad

fun <X> AndThen.Companion.~~monad~~(): AndThenMonad<X> Deprecated: AndThen is deprecated in favor of the function andThen used to provide stack safe function composition.

Monad abstract over the ability to declare sequential computations that are dependent in the order or the results of previous computations.

Given a type constructor F with a value of A we can compose multiple operations of type Kind<F, ?> where ? denotes a value being transformed.

This is true for all type constructors that can support the Monad type class including and not limited to Option, Either, List

The Monad Tutorial

Do you like Arrow?

Arrow Org
<