Avatar
omochimetaru 6/30/2017 4:06 AM
protocol Proto {} class Cat : Proto { func nya() { print("nyaa") } } extension Proto { func exec2(f: (Self) -> Void) { f(self) } } let cat = Cat() cat.exec2 { $0.nya() }
4:06 AM
できた
4:06 AM
@tarunon whereなしでかけた