Methods
composition
- composition<A, B, C>(fa: HK<F, A>, f: function, g: function): Equiv<HK<F, C>>
-
Type parameters
Parameters
-
fa: HK<F, A>
-
f: function
-
g: function
Returns Equiv<HK<F, C>>
identity
- identity<A>(fa: HK<F, A>): Equiv<HK<F, A>>
-
Type parameters
Parameters
Returns Equiv<HK<F, A>>
Type-class laws for
Functor
, as defined in thefunland
sub-project and in thestatic-land
spec.Laws defined for
Functor
:F.map(fa, x => x) <-> fa
F.map(fa, x => f(g(x))) <-> F.map(F.map(fa, g), f)