Swift: The 2 methods of writing a closure

The first method here provides clarity but the second method provides a cleaner style of writing a closure.

var addClosure1:(Int,Int)->Int = { (a : Int , b : Int) -> Int in
    return a + b
}


var addClosure2 = { (a : Int , b : Int) -> Int in
    return a + b
}

let c1 : Int = addClosure1(10,2)
print(c1)

let c2 : Int = addClosure2(10,2)
print(c2)

swift

Series Navigation<< Shuffle array in a class
Swift: Optional variable >>