UNPKG
fantasy-types
Version:
latest (0.0.9)
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Fantasy Land types definitions
fantasy-types
/
Profunctor.ts
6 lines
(4 loc)
•
165 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
Functor
}
from
"./Functor"
;
export
interface
Profunctor
<T>
extends
Functor
<T> {
promap
: <
T1
,
T2
>
(
f
: (a: T) => T1,
g
: (a: T1) => T2
) =>
Profunctor
<
T2
>; }