SyntaxFix
Write A Post
Hire A Developer
Questions
Return a tuple:
func getTime() -> (Int, Int, Int) { ... return ( hour, minute, second) }
Then it's invoked as:
let (hour, minute, second) = getTime()
or:
let time = getTime() println("hour: \(time.0)")