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
It would be useful to have: func Duplicate[T comparable](collection []T) []T func DuplicateBy[T any, U comparable](collection []T, iteratee func(T) U) []T
That would only return the duplicated values of the collection
.
The text was updated successfully, but these errors were encountered:
It would be useful to have:
func Duplicate[T comparable](collection []T) []T
func DuplicateBy[T any, U comparable](collection []T, iteratee func(T) U) []T
That would only return the duplicated values of the collection
.
The text was updated successfully, but these errors were encountered: