@@ -30,13 +30,13 @@ public static void main(final String[] args) {
30
30
comp0 = Apply .comp ();
31
31
final HFoldr <Unit , F <Integer , Integer >, HList .HNil , F <Integer , Integer >>
32
32
fold0 = HFoldr .hFoldr ();
33
- final HFoldr <Unit , F <Integer , Integer >, HList .HCons <F <String , Integer >,
34
- HList .HCons <F <Integer , Integer >, HList .HCons <F <Integer , Integer >, HList .HNil >>>, F <String , Integer >>
35
- fold2 = HFoldr .hFoldr (comp1 , HFoldr .hFoldr (comp0 , HFoldr .hFoldr (comp0 , fold0 )));
33
+ // final HFoldr<Unit, F<Integer, Integer>, HList.HCons<F<String, Integer>,
34
+ // HList.HCons<F<Integer, Integer>, HList.HCons<F<Integer, Integer>, HList.HNil>>>, F<String, Integer>>
35
+ // fold2 = HFoldr.hFoldr(comp1, HFoldr.hFoldr(comp0, HFoldr.hFoldr(comp0, fold0)));
36
36
final F <Integer , Integer > id = identity ();
37
37
38
38
// Compose the list and apply the resulting function to a value.
39
39
// Unit is used because composition has only one possible implementation.
40
- out .println (fold2 .foldRight (unit (), id , functions ).f ("abc" )); // 7
40
+ // out.println(fold2.foldRight(unit(), id, functions).f("abc")); // 7
41
41
}
42
42
}
0 commit comments