SWIFT -Schließung, der den Wert zurückgibt
// closure definition
var findSquare = { (num: Int) -> (Int) in
var square = num * num
return square
}
// closure call
var result = findSquare(3)
print("Square:",result)
SAMER SAEID