Avatar
func foo(x: Int) { RunFoo(zelf: self, x: x).run() } struct RunFoo { private let zelf: ... private let x: Int func run() { ... } ... } (edited)