Skip to content

Change */fold examples to use different accumulator type#1168

Merged
Gabriella439 merged 4 commits intomasterfrom
gabriel/change_fold_examples
May 14, 2021
Merged

Change */fold examples to use different accumulator type#1168
Gabriella439 merged 4 commits intomasterfrom
gabriel/change_fold_examples

Conversation

@Gabriella439
Copy link
Copy Markdown
Contributor

Fixes #1166

… to avoid confusion with the base case being called `zero` in the
second and third examples.
… by factoring out the lambda binding, which doesn't need to
be inside the assertion
@Gabriella439 Gabriella439 merged commit f6a8482 into master May 14, 2021
@Gabriella439 Gabriella439 deleted the gabriel/change_fold_examples branch May 14, 2021 15:49
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.

Use more insightful examples

2 participants