Is your feature request related to a problem? Please describe.
Rust provides the once() iterator that simply creates an iterator that yields the provided element once. It's synonymous with something like slices.Values([]string{"foo"}).
Describe the solution you'd like
See above.
Provide code snippets to show how this new feature might be used.
Is your feature request related to a problem? Please describe.
Rust provides the
once()
iterator that simply creates an iterator that yields the provided element once. It's synonymous with something likeslices.Values([]string{"foo"})
.Describe the solution you'd like
See above.
Provide code snippets to show how this new feature might be used.
Does this incur a breaking change?
No.
Do you intend to build this feature yourself?
Yes.