New is a convenience method for creating []T.
(items ...T)
| 171 | |
| 172 | // New is a convenience method for creating []T. |
| 173 | func New[T any](items ...T) []T { |
| 174 | return items |
| 175 | } |
| 176 | |
| 177 | func Ascending[T constraints.Ordered](a, b T) int { |
| 178 | if a < b { |
no outgoing calls