Google News
logo
Swift - Interview Questions
What is Nested Function in Swift Programming Language?
A function inside a function is called a nested function.
 
Syntax :
func function1() {    
    //statements of outer function    
    func function2() {    
        //statements of inner function    
    }    
}
Advertisement