Properties
Readonly
biMap
biMap: (<A, B>(first) => (<C, D>(second) => ((curr) => Get2<P, B, D>))) Type declaration
- <A, B>(first): (<C, D>(second) => ((curr) => Get2<P, B, D>))
Returns (<C, D>(second) => ((curr) => Get2<P, B, D>))
- <C, D>(second): ((curr) => Get2<P, B, D>)
Returns ((curr) => Get2<P, B, D>)
- (curr): Get2<P, B, D>
Returns Get2<P, B, D>
A structure which lifts both type parameters on
P
.All instances of bifunctor
f
mist satisfy the following laws:f.biMap(id)(id)
equals toid
,f
,g
,h
andi
;f.biMap(compose(f)(g))(compose(h)(i))
equals tocompose(f.biMap(f)(h))(f.biMap(g)(i))
.