How does closure work in swift?
Answer / Prem Narayan Kharwar
In Swift, a closure is a self-contained block of functionality that can be passed around and used in your code. It captures and stores references to any constants and variables from the context in which it is defined.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between xcode and swift?
What are initializer in swift?
What is lazy loading in ios swift?
Is swift written in c++?
How to pass the data between view controllers?
What is the meaning of question mark "?" In swift?
How can you write a multiple line comment swift?
Explain the difference between let and var in swift programming?
What is the difference between swift and xcode?
What is the use of static keyword in swift?
How will you connect ui?
What do you mean by initialization?