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

Correct typo in reducing concept #829

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion concepts/reducing/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The `:initial-value` argument is not mandatory and `reduce` acts differently dep

1. If the initial-value is not provided and the sequence has more than one element then the first time the function is called it is called with the first two elements of the sequence.
2. If the initial-value is not provided and the sequence has one element then the form evaluates to that element and the function is not called.
3. If the initial-value is provided and the element is empty then the form evaluates to the initial value and the function is not called.
3. If the initial-value is provided and the sequence is empty then the form evaluates to the initial value and the function is not called.
4. If the initial-value is not provided and the sequence is empty then the function is called with *zero* arguments.

The last case is one that can trip people up.
Expand Down