Skip to content

Commit e4f6893

Browse files
committed
what
1 parent 2b5ff3d commit e4f6893

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

lib/es6/belt_internalBuckets.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33
import * as Belt_Array from "./belt_Array.js";
44
import * as Caml_option from "./caml_option.js";
55

6-
function copyBucket(c) {
7-
if (c === undefined) {
8-
return c;
9-
}
10-
let head = {
11-
key: c.key,
12-
value: c.value,
13-
next: undefined
14-
};
15-
copyAuxCont(c.next, head);
16-
return head;
17-
}
18-
196
function copyAuxCont(_c, _prec) {
207
while(true) {
218
let prec = _prec;
@@ -35,6 +22,19 @@ function copyAuxCont(_c, _prec) {
3522
};
3623
}
3724

25+
function copyBucket(c) {
26+
if (c === undefined) {
27+
return c;
28+
}
29+
let head = {
30+
key: c.key,
31+
value: c.value,
32+
next: undefined
33+
};
34+
copyAuxCont(c.next, head);
35+
return head;
36+
}
37+
3838
function copyBuckets(buckets) {
3939
let len = buckets.length;
4040
let newBuckets = new Array(len);

lib/js/belt_internalBuckets.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@
33
let Belt_Array = require("./belt_Array.js");
44
let Caml_option = require("./caml_option.js");
55

6-
function copyBucket(c) {
7-
if (c === undefined) {
8-
return c;
9-
}
10-
let head = {
11-
key: c.key,
12-
value: c.value,
13-
next: undefined
14-
};
15-
copyAuxCont(c.next, head);
16-
return head;
17-
}
18-
196
function copyAuxCont(_c, _prec) {
207
while(true) {
218
let prec = _prec;
@@ -35,6 +22,19 @@ function copyAuxCont(_c, _prec) {
3522
};
3623
}
3724

25+
function copyBucket(c) {
26+
if (c === undefined) {
27+
return c;
28+
}
29+
let head = {
30+
key: c.key,
31+
value: c.value,
32+
next: undefined
33+
};
34+
copyAuxCont(c.next, head);
35+
return head;
36+
}
37+
3838
function copyBuckets(buckets) {
3939
let len = buckets.length;
4040
let newBuckets = new Array(len);

0 commit comments

Comments
 (0)