This commit is contained in:
Mike Schwörer 2023-03-29 20:25:03 +02:00
parent b156052e6f
commit ca24e1d5bf
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -348,3 +348,11 @@ func ArrFlattenDirect[T1 any](arr [][]T1) []T1 {
} }
return r return r
} }
func ArrCastToAny[T1 any](arr []T1) []any {
r := make([]any, len(arr))
for i, v := range arr {
r[i] = any(v)
}
return r
}