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

Suggestion: An alias method to output readonly array for Seq #1

Merged
merged 2 commits into from Mar 22, 2022

Conversation

hachibeeDI
Copy link
Contributor

Hello,

This is a suggestion to support ReadonlyArray<T>.
In my opinion, ReadonlyArray is always a preferable choice than mutable one. (So they should be toMutableArray() and toArray() though, I hesitate to break backward compatibility)

Also, I think some operators are able to support that interface i.e. the result of groupBy.
I would commit for some enhancement if you feel positive against that.

Thanks!

@ugaya40
Copy link
Owner

ugaya40 commented Mar 20, 2022

@hachibeeDI
Thank you for your prompt suggestion. Sorry it took me so long to notice.

I think you are correct.
We will consider including breaking changes. Please wait a moment.

@ugaya40
Copy link
Owner

ugaya40 commented Mar 21, 2022

@hachibeeDI
I thought that toArray()/toMutableArray() would be better.

chunk/chunkAsync
groupBy/groupByAsync

needs to be modified as well.
please.

@hachibeeDI
Copy link
Contributor Author

Sure things! I'll make some changes to my branch. one sec please...

@hachibeeDI hachibeeDI force-pushed the to-readonly-array branch 3 times, most recently from c04c127 to 10fb5e5 Compare March 22, 2022 02:27
@hachibeeDI
Copy link
Contributor Author

Okay, now they all are marked as readonly.

@ugaya40 ugaya40 merged commit 76775c3 into ugaya40:main Mar 22, 2022
@ugaya40
Copy link
Owner

ugaya40 commented Mar 22, 2022

@hachibeeDI
Thank you very much!

Merged and released as v1.4.4!

@ugaya40
Copy link
Owner

ugaya40 commented Mar 22, 2022

I made a mistake and released a patch version.
It should have been v1.5....

@hachibeeDI
Copy link
Contributor Author

Thanks!

@hachibeeDI hachibeeDI deleted the to-readonly-array branch March 22, 2022 09:01
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.

None yet

2 participants