@@ -30,13 +30,13 @@ public static void main(final String[] args) {
3030 comp0 = Apply .comp ();
3131 final HFoldr <Unit , F <Integer , Integer >, HList .HNil , F <Integer , Integer >>
3232 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)));
3636 final F <Integer , Integer > id = identity ();
3737
3838 // Compose the list and apply the resulting function to a value.
3939 // 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
4141 }
4242}
0 commit comments