Readonly
bifoldR
bifoldR: (<A, C>(aFolder) => (<B>(bFolder) => ((init) => ((data) => C))))
Type declaration
- <A, C>(aFolder): (<B>(bFolder) => ((init) => ((data) => C)))
Parameters
aFolder: ((a) => ((c) => C))
- (a): ((c) => C)
Returns ((c) => C)
Returns (<B>(bFolder) => ((init) => ((data) => C)))
The value folded data
.
- <B>(bFolder): ((init) => ((data) => C))
Parameters
bFolder: ((b) => ((c) => C))
- (b): ((c) => C)
Returns ((c) => C)
Returns ((init) => ((data) => C))
- (init): ((data) => C)
Returns ((data) => C)
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))
.