proposal: src/iter: iter.Seq2.Keys() and iter.Seq2.Values() #71658
Labels
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
Proposal
Milestone
Proposal Details
Basically the same as the maps.Keys() and maps.Values() functions, written here except for
iter.Seq2
datatype. I found that the existing implementations formaps.Keys()
worked exactly for what I needed. The function doesn't work for theiter.Seq2
type, so I ended up writing the below function myself, simply replacing the datatypes. Seems like a useful addition to the standard library. Happy to submit a PR myself if this is approved.The text was updated successfully, but these errors were encountered: