设置集合类型 swift

Set collection type swift

我正在通过 Apple 的文档学习 swift,我正在学习“集合类型”一章和“集合”部分。 其中一个例子是这个

var letters = Set<Character>()

但是当我进入那个时,我得到了以下错误。

error: use of unresolved identifier 'Set'
 var letters = Set<Character>()

根据他们的文档对集合进行了修订,但没有任何帮助。

原生 Set 从 Swift 1.2 开始可用。一切都表明您使用的是较低版本。

Swift 1.2 and Xcode 6.3 beta

New native Set data structure — An unordered collection of unique elements that bridges with NSSet and provides value semantics like Array and Dictionary.