Skip to content

proposal: slices: add Map function #61191

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

Closed
haoxins opened this issue Jul 6, 2023 · 1 comment
Closed

proposal: slices: add Map function #61191

haoxins opened this issue Jul 6, 2023 · 1 comment

Comments

@haoxins
Copy link
Contributor

haoxins commented Jul 6, 2023

It would be nice to have a simple, generic way to map a slice to another.
I have already seen it in the associated drafts, such as https://github.com/golang/proposal/blob/master/design/go2draft-contracts.md#defined-aggregate-types,
but it is not included in the slices package introduced in Go 1.21.

Is there any particular reason not to do this?

@gopherbot gopherbot added this to the Proposal milestone Jul 6, 2023
@seankhliao
Copy link
Member

Duplicate of #58881

@seankhliao seankhliao marked this as a duplicate of #58881 Jul 6, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2023
@haoxins haoxins closed this as completed Jul 6, 2023
@golang golang locked and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants