Koichi Adachi

smart phone app development tips

Tuple

Swift Tuple

Swiftで複数の値を持った戻り値を扱える。 class ExamTuple{ class func execute()->(){ var ret = self.exam() println(ret.value1 + ret.value2) println("\(ret.value1 + ret.value2)") println(self.exam().0 + self.exam().1 ) } class func exam()->(v…