标签:泛型 swift
func swapTwoValues<T>(inout a: T, inout b: T) { let temporaryA = a a = b b = temporaryA }
func swapTwoInts(inout a: Int, inout b: Int) func swapTwoValues<T>(inout a: T, inout b: T)
Swift泛型,布布扣,bubuko.com
Swift泛型
原文地址:http://blog.csdn.net/guxiaonuan/article/details/28913251