The “thing” giving that this closure is this ->. Full type
(Self.Generator.Element) throws -> Bool
, Self.Generator.Element a Bool . , - , .
{ (parameters) -> return type in
statements
}
, .
, , (someInt:Int, someDouble:Double) -> String:
var a : ((someInt:Int, someDouble:Double) -> String)
, , a , -> .
- a , :
a = { (integer, floating) -> String in
return "\(integer) \(floating)"
}