如何将Swift数组转换为单行中的元组?

时间:2016-09-28 10:41:47

标签: swift tuples

如何将Swift数组转换为单行元组?是否可以使用地图?

let arr = [1, 2]

let (a, b) = tuple(arr)  #tuple method doesn't exits, how can it be achieved

0 个答案:

没有答案