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

Accept readonly arrays in aggregateGroups, reduceGroups, zip #3662

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

NotWoods
Copy link
Contributor

Most methods in std/collections accept readonly arrays (as none of the methods mutate the input), but these 3 were the exception. Updated types to allow readonly arrays as input.

Additionally added docs for the generic types, since the single letter names can be difficult to read.

@lino-levan
Copy link
Contributor

Please run deno fmt!

Copy link
Contributor

@lino-levan lino-levan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

The docs for generic types look very nice!

@kt3k kt3k merged commit a461ce1 into denoland:main Sep 21, 2023
@NotWoods NotWoods deleted the readonly-collections branch September 21, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants