removed redundant sentence fragment (#30793)
This commit is contained in:
@ -52,7 +52,6 @@ In the above program, the nested function addGreetingAndPrint() is being called
|
|||||||
The statement outputMessageByGreeting("Jack") calls the outer function. And the statement addGreetingAndPrint() inside the outer function calls the method which outputs Hello! Jack in the console.
|
The statement outputMessageByGreeting("Jack") calls the outer function. And the statement addGreetingAndPrint() inside the outer function calls the method which outputs Hello! Jack in the console.
|
||||||
|
|
||||||
Example 2: Nested function with parameters and return values
|
Example 2: Nested function with parameters and return values
|
||||||
Nested functions can contain functions with parameters and return values.
|
|
||||||
|
|
||||||
```Swift
|
```Swift
|
||||||
func operate(with symbol:String) -> (Int, Int) -> Int {
|
func operate(with symbol:String) -> (Int, Int) -> Int {
|
||||||
|
Reference in New Issue
Block a user