📜  快速传递更接近函数 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.278000             🧑  作者: Mango

代码示例1
func anyFunc(_ closure: @autoclosure () -> T) {
  let result: T = closure()
  // TODO: Do something with result?
}

anyFunc(print("hello"))