- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for _SliceOf (1.94 sec)
-
test/typeparam/double.go
} type MySlice []int type MyFloatSlice []float64 type _SliceOf[E any] interface { ~[]E } func _DoubleElems[S _SliceOf[E], E Number](s S) S { r := make(S, len(s)) for i, v := range s { r[i] = v + v } return r } // Test use of untyped constant in an expression with a generically-typed parameter func _DoubleElems2[S _SliceOf[E], E Number](s S) S { r := make(S, len(s)) for i, v := range s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.5K bytes - Viewed (0)