Swift 공식문서 - Closures
https://docs.swift.org/swift-book/documentation/the-swift-programming-language/closures/ Documentation docs.swift.org ClosuresGroup code that executes together, without creating a named function.이름있는 함수의 생성 없이 실행되는 코드 그룹클로저는 기능적으로 self-contained된 블럭인데, 이게 뭐냐면 코드에서 사용될 수 있고 주변에 전달될 수 있는 것이다.클로저 자체가 독립된 블록이다.Closures are self-contained blocks of functionality that can be passed around and used in ..
2024.06.19