Type-class laws for Apply, as defined in the funland sub-project and in the static-land spec.
Apply
funland
static-land
Applicative inherits the laws of Apply and in addition must obey:
Applicative
A.ap(A.of(x => x), v) <-> v
A.ap(A.of(f), A.of(x)) <-> A.of(f(x))
map
A.map(u, f) <-> A.ap(A.of(f), u)
Generated using TypeDoc
Type-class laws for
Apply
, as defined in thefunland
sub-project and in thestatic-land
spec.Applicative
inherits the laws ofApply
and in addition must obey:A.ap(A.of(x => x), v) <-> v
A.ap(A.of(f), A.of(x)) <-> A.of(f(x))
map
can be derived:A.map(u, f) <-> A.ap(A.of(f), u)