We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4848481 commit add77c6Copy full SHA for add77c6
coderd/util/slice/slice.go
@@ -62,3 +62,8 @@ func OverlapCompare[T any](a []T, b []T, equal func(a, b T) bool) bool {
62
}
63
return false
64
65
+
66
+// New is a convenience method for creating []T.
67
+func New[T any](items ...T) []T {
68
+ return items
69
+}
0 commit comments