Avatar
omochimetaru 1/26/2020 3:44 PM
variadic type に対する APIのようですね
// Variadic values are somewhat "special", because both inside and outside of a // generic context act like a Collection - or better are a Collection. The // Element of this collection is the constraint of the Variadic Generic. In- // side a generic context, the ... syntax allows users to convert this collec- // tion to a tuple whose shape and types will be the concrete types passed to // the Variadic Generic parameter.
3:44 PM
だから、 var someTs: T は一見、T型のプロパティに見えるけど
3:44 PM
SimpleVariadic<T: variadic P1> だから