2 ms·
> This only handles functions of type a -> a -> a So, since his toy code was explicitly written to accept the same type for both parameters of the function, yo
by falcolas 12y ago
> This only handles functions of type a -> a -> a
So, since his toy code was explicitly written to accept the same type for both parameters of the function, you are unable to see how it could be modified to accept a different type signature for the reduce function? It looks to me like a fairly trivial change to get the type of argument `zero`, and use that as one of the parameters to the reduce function.
As for pmahoney's comment, looks like there's a bug. Perhaps he should file a bug report, or pull request.