Avatar
omochimetaru 4/6/2021 9:22 AM
protocol Lettable { func `let`<R>(_ f: (Self) throws -> R) rethrows -> R } extension Lettable { func `let`<R>(_ f: (Self) throws -> R) rethrows -> R { try f(self) } } struct S: Lettable { } S().let { print($0) }