sdk
sdk copied to clipboard
docs: `Iterable.reduce` throws when empty
Added documentation to describe the behavior when Iterable.reduce
is called when it is an empty collection. It's also noted that one may consider using fold
in that case.
- [X] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:
- See our contributor guide for general expectations for PRs.
- Larger or significant changes should be discussed in an issue before creating a PR.
- Contributions to our repos should follow the Dart style guide and use
dart format
.
Note that this repository uses Gerrit for code reviews. Your pull request will be automatically converted into a Gerrit CL and a link to the CL written into this PR. The review will happen on Gerrit but you can also push additional commits to this PR to update the code review.