Files
developer-roadmap/roadmaps/ios/content/closures@M9UlalPL47GoqhcyGsAPV.md

382 B

Closures

Closures are self-contained blocks of code that can capture and store references to values from the surrounding context. In Swift, closures are first-class types that can be passed as arguments, stored in variables, and returned from functions. They are the basis for callbacks, higher-order functions like map and filter, and completion handlers throughout the iOS SDK.