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

accumulate: fix inefficient example #209

Merged
merged 1 commit into from
Jul 19, 2016
Merged

accumulate: fix inefficient example #209

merged 1 commit into from
Jul 19, 2016

Conversation

petertseng
Copy link
Member

The intent, I believe, is to show an example that would work and gives
correct results but fails the non-strictness test. It was added in
d238a33.

In order for it to compile, the xs needs to be removed (an eta
reduction has happened).

In order for the results to be correct, final acc must be reversed.

The intent, I believe, is to show an example that would work and gives
correct results but fails the non-strictness test. It was added in
d238a33.

In order for it to compile, the `xs` needs to be removed (an eta
reduction has happened).

In order for the results to be correct, final `acc` must be reversed.
@rbasso
Copy link
Contributor

rbasso commented Jul 19, 2016

Nice catch!

@rbasso rbasso merged commit b47ad6b into exercism:master Jul 19, 2016
@petertseng petertseng deleted the accumulate-example branch July 19, 2016 03:24
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

Successfully merging this pull request may close these issues.

2 participants