#!/usr/local/bin/swift struct closureA { func request(num: Int, response: (a: Int) -> ()) { response(a * 10) } } let a = closureA() a.request(num: 1) { print(a) // 10 } a.request(num: 5) { print(a) // 50 }