UNPKG
@typed/future
Version:
latest (11.6.0)
11.6.0
11.5.4
11.5.3
11.5.2
11.5.1
11.5.0
11.4.1
11.4.0
11.3.0
11.2.1
11.2.0
11.1.1
11.1.0
11.0.0
10.2.0
10.1.0
10.0.0
9.0.1
9.0.0
8.1.0
8.0.0
7.0.0
6.3.0
6.2.0
6.1.0
6.0.2
6.0.1
6.0.0
5.0.0
4.0.0
3.2.0
3.1.0
3.0.0
2.1.0
2.0.0
1.0.1
1.0.0
Asynchronous Future Values
github.com/TylorS/typed-prelude
TylorS/typed-prelude
@typed/future
/
esm
/
ap.js
8 lines
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ curry }
from
'@typed/lambda'
;
import
{ chain }
from
'./chain'
;
import
{ map }
from
'./map'
;
export
const
ap =
curry
(__ap);
function
__ap
(
fn, value
) {
return
chain
(
(
f
) =>
map
(f, value), fn); }
//# sourceMappingURL=ap.js.map