Closed ivenmarquardt closed 3 years ago
If we apply foldr to List.Foldable
foldr
List.Foldable
export const foldr = fun( Foldable => f => acc => tx => Foldable.foldMapr(Endo.Monoid) (f) (tx) (acc), "Foldable<t> => (a => b => b) => b => t<a> => b");
the unified type is (a => b => b) => b => List => b instead of (a => b => b) => b => List<a> => b.
(a => b => b) => b => List => b
(a => b => b) => b => List<a> => b
Partially applied type constructors were not taken into account in every case. Done.
If we apply
foldr
toList.Foldable
the unified type is
(a => b => b) => b => List => b
instead of(a => b => b) => b => List<a> => b
.