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!!!
2 Answers
+ 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.
0
Thnks!!!