Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The accumulate problem uses inaccurate terminology #556

Closed
hjiang opened this issue Jan 5, 2024 · 1 comment
Closed

The accumulate problem uses inaccurate terminology #556

hjiang opened this issue Jan 5, 2024 · 1 comment

Comments

@hjiang
Copy link

hjiang commented Jan 5, 2024

The accumulate problem asks for a function of type:

(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?

@NobbZ
Copy link
Member

NobbZ commented Jan 5, 2024

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.

@NobbZ NobbZ closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants