1
0
mirror of https://github.com/go-task/task.git synced 2025-12-01 22:52:02 +02:00

feat: go 1.21

This commit is contained in:
Pete Davison
2023-08-29 21:04:01 +00:00
committed by Andrey Nering
parent 81148c312e
commit 8d0754af4d
11 changed files with 52 additions and 29 deletions

View File

@@ -1,11 +1,11 @@
package slicesext
import (
"golang.org/x/exp/constraints"
"golang.org/x/exp/slices"
"cmp"
"slices"
)
func UniqueJoin[T constraints.Ordered](ss ...[]T) []T {
func UniqueJoin[T cmp.Ordered](ss ...[]T) []T {
var length int
for _, s := range ss {
length += len(s)