File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,14 @@ var each = import("../../lib/js/belt_List.js").then(function (m) {
6
6
return m . forEach ;
7
7
} ) ;
8
8
9
- function eachInt ( list , f ) {
10
- var arg1 = function ( each ) {
11
- return Promise . resolve ( Curry . _2 ( each , list , f ) ) ;
12
- } ;
13
- return each . then ( arg1 ) ;
14
- }
15
-
16
9
var beltAsModule = import ( "../../lib/js/belt_List.js" ) ;
17
10
11
+ async function eachInt ( list , f ) {
12
+ var each$1 = await each ;
13
+ return Curry . _2 ( each$1 , list , f ) ;
14
+ }
15
+
18
16
exports . each = each ;
19
- exports . eachInt = eachInt ;
20
17
exports . beltAsModule = beltAsModule ;
18
+ exports . eachInt = eachInt ;
21
19
/* No side effect */
Original file line number Diff line number Diff line change @@ -6,3 +6,8 @@ let eachInt = (list: list<int>, f: int => unit) =>
6
6
module type BeltList = module type of Belt .List
7
7
8
8
let beltAsModule = Js .import (module (Belt .List : BeltList ))
9
+
10
+ let eachInt = async (list : list <int >, f : int => unit ) => {
11
+ let each = await each
12
+ list -> each (f )
13
+ }
You can’t perform that action at this time.
0 commit comments