Addition of two numbers using a function in swift language

Addition of two numbers using a function in swift language. This program will execute the swift program outside of the condition and it will print the output through the return statement in swift programming language

let sum = 
{
(a: Int, b: Int) -> Int in
return a + b
}
let number = sum(20,30)
print(number)
Output:

50