A sequential computation framework with wrapping the type S. All instances of the monad m must satisfy the following laws:
S
m
f
a
m.flatMap(f)(m.pure(a))
f(a)
m.flatMap(m.pure)(a)
g
m.flatMap(f)(m.flatMap(g)(a))
m.flatMap((x) => m.flatMap(f)(g(x)))(a)
Readonly
Applies the function to the value over S.
The wrapped function.
The value got by evaluating fn.
fn
Maps the function fn onto F structure.
F
The function to be mapped.
The mapped function.
Generated using TypeDoc
A sequential computation framework with wrapping the type
S
. All instances of the monadm
must satisfy the following laws:f
anda
;m.flatMap(f)(m.pure(a))
equals tof(a)
,a
;m.flatMap(m.pure)(a)
equals toa
,f
,g
anda
;m.flatMap(f)(m.flatMap(g)(a))
equals tom.flatMap((x) => m.flatMap(f)(g(x)))(a)
.