func f0(_ f: ( (Int) throws -> (), Int) ) rethrows -> Int // error
(edited)func add(_ x: Int, _ y: Int) -> Int { return x + y } print((1, 3) => add)
これできるのかpublic func =><T0, T1, R>(_ x: T1, _ f: ((T0, T1) -> R, T0)) -> R { return f.0(f.1, x) } print(3 => (add, 1))
(edited)