Skip to content

Commit

Permalink
Correct typo in reducing concept (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
oezg authored Aug 8, 2024
1 parent f34b972 commit 34363da
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 34363da

Please sign in to comment.