0

Swift Functions assigned to variables

What is the point of assigning a function to a variable if we can just call the original function? Thanks!!!

4th May 2017, 12:31 AM
FishermanMan
2 Respuestas
+ 8
Imagine that you need a function that creates another function and then returns it. You need to be able to use functions as variables.
4th May 2017, 12:55 AM
Ulisses Cruz
Ulisses Cruz - avatar
0
Thnks!!!
4th May 2017, 2:32 AM
FishermanMan