Multi Return Values

2016. 8. 12. 10:56Programming/Swift

반응형

func MultiReturn() -> (String, Int, NSDate) {

    let name = "MultiReturn"

    let age = 25

    let date = NSDate()


    return (name, age, date)

}


print(MultiReturn().0)

print(MultiReturn().1)

print(MultiReturn().2)



반응형