How can I programatically inspect the type of a Swift
object? Something similar to obtaining the class of an object in ObjectiveC with the class
message.
So, if I have
func f(x: Int) -> Int{
return x * 3
}
I want to get (Int)->Int
as the type of f.