我有这个数组:
let arrayOfPairs = [ (8, 1), (6, 4), (2, 3), ]
我想要这个数组:
let arrayOfSingleValues = [ 8, 6, 2, ]
如何从一对中提取一个值?
arrays swift
arrays ×1
swift ×1