mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-30 19:21:49 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
382 B
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.