Files
math/zero.go
T

11 lines
226 B
Go
Raw Normal View History

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package math
// Zero returns the zero value of any type T.
func Zero[T any]() T {
var zero T
return zero
}