ios8 - Set collection type swift -


i learning swift through apple's documentation , on collection types chapter , in sets section. 1 of examples this

var letters = set<character>() 

but when go enter following error.

error: use of unresolved identifier 'set'  var letters = set<character>() 

there revision on sets according documentation, nothing helping me there.

native set available since swift 1.2. everthing points you're using lower version.

swift 1.2 , xcode 6.3 beta

new native set data structure — unordered collection of unique elements bridges nsset , provides value semantics array , dictionary.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -