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

fix(reduce): better type and docs for reduce (#240) #243

Merged
merged 2 commits into from
Jan 23, 2024
Merged

fix(reduce): better type and docs for reduce (#240) #243

merged 2 commits into from
Jan 23, 2024

Conversation

Phryxia
Copy link
Contributor

@Phryxia Phryxia commented Jan 21, 2024

At first I mentionedR but more describing Acc would be better.

  • Change type A,B into T, Acc for reduce
  • Give proper value name for acc, value instead of a, b
  • Add example with explicit seed
  • Add @typeParam for tsdoc support

Fixes #240

- Change type `A`,`B` into `T`, `Acc` for `reduce`
- Give proper value name for `acc` instead of `b`
- Add example with explicit seed
- Add @typeparam for tsdoc support
@ppeeou ppeeou requested a review from hg-pyun January 23, 2024 13:43
src/reduce.ts Outdated Show resolved Hide resolved
@ppeeou
Copy link
Member

ppeeou commented Jan 23, 2024

Thank you for your contribution 🙇‍♂️

@ppeeou ppeeou merged commit 8f1865e into marpple:main Jan 23, 2024
1 check passed
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.

Better documentation and parameter name for reduce
2 participants