@@ -41,11 +41,11 @@ mutable class Writer{
41
41
/* The signature of a function used by apply. */
42
42
/*****************************************************************************/
43
43
44
- type MapFun = (
44
+ type MapFun<K, F> = (
45
45
mutable Context,
46
46
mutable Writer,
47
- Key ,
48
- mutable Iterator<File >,
47
+ K ,
48
+ mutable Iterator<F >,
49
49
) ~> void;
50
50
51
51
/*****************************************************************************/
@@ -679,7 +679,7 @@ class EagerDir protected {
679
679
DirName,
680
680
Array<
681
681
(
682
- MapFun,
682
+ MapFun<Key, File> ,
683
683
?Array<KeyRange<Key>>,
684
684
?((mutable Context, SortedSet<Key>) ~> void),
685
685
),
@@ -960,7 +960,7 @@ class EagerDir protected {
960
960
parent: EagerDir,
961
961
childName: DirName,
962
962
timeStack: TimeStack,
963
- f: MapFun,
963
+ f: MapFun<Key, File> ,
964
964
acc: mutable Vector<FixedRow<Key, Array<File>>>,
965
965
current: mutable IntRef,
966
966
): void {
@@ -1020,7 +1020,7 @@ class EagerDir protected {
1020
1020
parent: EagerDir,
1021
1021
childName: DirName,
1022
1022
timeStack: TimeStack,
1023
- f: MapFun,
1023
+ f: MapFun<Key, File> ,
1024
1024
currentStart: Int,
1025
1025
currentEnd: Int,
1026
1026
start: ?Boundary<Key>,
@@ -1111,7 +1111,7 @@ class EagerDir protected {
1111
1111
parent: EagerDir,
1112
1112
childName: DirName,
1113
1113
timeStack: TimeStack,
1114
- f: MapFun,
1114
+ f: MapFun<Key, File> ,
1115
1115
acc: mutable Vector<FixedRow<Key, Array<File>>>,
1116
1116
rangeOpt: ?KeyRange<Key>,
1117
1117
): void {
@@ -1175,7 +1175,7 @@ class EagerDir protected {
1175
1175
timeStack: TimeStack,
1176
1176
key: Key,
1177
1177
valueIter: mutable Iterator<File>,
1178
- f: MapFun,
1178
+ f: MapFun<Key, File> ,
1179
1179
): void {
1180
1180
arrow = ArrowKey::create{parentName, childName, key};
1181
1181
context.enter(arrow, timeStack);
@@ -1231,7 +1231,7 @@ class EagerDir protected {
1231
1231
DirName,
1232
1232
Array<
1233
1233
(
1234
- MapFun,
1234
+ MapFun<Key, File> ,
1235
1235
?Array<KeyRange<Key>>,
1236
1236
?((mutable Context, SortedSet<Key>) ~> void),
1237
1237
),
@@ -1286,7 +1286,7 @@ class EagerDir protected {
1286
1286
context: mutable Context,
1287
1287
parentName: DirName,
1288
1288
childName: DirName,
1289
- f: MapFun,
1289
+ f: MapFun<Key, File> ,
1290
1290
reducerOpt: ?IReducer<File> = None(),
1291
1291
rangeOpt: ?Array<KeyRange<Key>> = None(),
1292
1292
onUpdate: ?((mutable Context, SortedSet<Key>) ~> void) = None(),
@@ -1305,7 +1305,7 @@ class EagerDir protected {
1305
1305
DirName,
1306
1306
Array<
1307
1307
(
1308
- MapFun,
1308
+ MapFun<Key, File> ,
1309
1309
?Array<KeyRange<Key>>,
1310
1310
?((mutable Context, SortedSet<Key>) ~> void),
1311
1311
),
@@ -1577,7 +1577,7 @@ class EagerDir protected {
1577
1577
contextDirtyReadersOpt: ?SortedMap<DirName, SortedSet<Key>>,
1578
1578
parentMaps: Array<
1579
1579
(
1580
- MapFun,
1580
+ MapFun<Key, File> ,
1581
1581
?Array<KeyRange<Key>>,
1582
1582
?((mutable Context, SortedSet<Key>) ~> void),
1583
1583
),
0 commit comments