Open Glsme opened 1 year ago
let closure = { () -> () in print("Closure") }
func doSomething(closure: () -> ()) { closure() }
func doSomething() -> () -> () { }
Closure
1급 객체로서 클로저 특징