Slide 4
Slide 4 text
Genericͱ͍͑
classstruct, funcʹtype parameterΛ͚ͭΔ
class SomeClass {
var someProperty: [T] = []
func someFunction(arg0: T, arg1: S) {
print(arg0, arg1)
}
}
let c = SomeClass()
// func ͷ߹type parameterΛ໌ࣔ͠ͳ͍
c.someFunction(arg0: 0, arg1: "hello")