v0.0.98
This commit is contained in:
parent
b156052e6f
commit
ca24e1d5bf
@ -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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user