You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose adding higher-order functions like Map, Filter, Fold, etc. to the slices library. These higher-order functions make writing data transforms far more ergonomic. They are present in otherlanguages.
I believe this library already implements some version of these: https://pkg.go.dev/github.com/sa-/slicefunk. I think it would be nice for these to be integrated into the standard slices library.
I'm pretty new to Go -- if there's a good language reason for not including these, I'd love to learn more about why!
The text was updated successfully, but these errors were encountered:
The plan is to have such functions operate on iterators, not just slices.
See #61898
I'm going to close, as I think that issue subsumes this one. Please reopen if you disagree.
Proposal Details
I propose adding higher-order functions like Map, Filter, Fold, etc. to the
slices
library. These higher-order functions make writing data transforms far more ergonomic. They are present in other languages.I believe this library already implements some version of these: https://pkg.go.dev/github.com/sa-/slicefunk. I think it would be nice for these to be integrated into the standard
slices
library.I'm pretty new to Go -- if there's a good language reason for not including these, I'd love to learn more about why!
The text was updated successfully, but these errors were encountered: