Avatar
struct Factory<T> { func `init`(_ f: () -> T) -> T { return f() } } let foo = Factory { let a = 1 let b = "2" return Foo.init(a: a, b: b) } こっちはダメだった 😢