Closed hjiang closed 10 months ago
The accumulate problem asks for a function of type:
accumulate
(fun((A) -> B), list(A)) -> list(B)
In most languages accumulate has the type:
(fun((A, B) -> A), A, list(B)) -> A
Perhaps calling it map would be more appropriate?
map
The name of the function is taken from the canonical data, and it has been point of discussion there a couple of times in public and private discussion channels.
Yes, accumulate is just map.
The
accumulate
problem asks for a function of type:In most languages
accumulate
has the type:Perhaps calling it
map
would be more appropriate?