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:
committed by
Andrey Nering
parent
81148c312e
commit
8d0754af4d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user