Is closure a function?
Answer / Sweta Singh
Yes, in Swift, a closure is a self-contained block of functionality that can be passed around and used in your code. It encapsulates both the data (i.e., variables) and the functionality (i.e., code) needed to perform a task.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective-c is used in window also?
What is the class of a constant string?
What is objective point of view?
What is a hash string?
Distinguish between @synthesize and @dynamic in objective –c?
What are benefits of collections views?
What is the difference between a script and function?
What are the adavantages of gcd over nsthread?
Does objective c have garbage collection?
What is the main difference between function calls and messages?
How to initialize nsmutabledictionary in objective c?
How to convert objective c project to swift?