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
/
map.js
8 lines
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ curry }
from
'@typed/lambda'
;
import
{ chain }
from
'./chain'
;
import
{
Future
}
from
'./Future'
;
export
const
map =
curry
(__map);
function
__map
(
fn, future
) {
return
chain
(
(
b
) =>
Future
.
of
(
fn
(b)), future); }
//# sourceMappingURL=map.js.map