In Swift 1.2 there is a Set object, which you can use to create a static typed Set.
I cannot find out how to get the object at a certain index. It has a subscript
that allows you to do the following: mySet[setIndex]
.
This retrieves the object at that setIndex
. But now I want to get an object from a certain Int
index.
var myObject = mySet[sIndex];
But how do I create a SetIndex with a certain 'index'?
See Question&Answers more detail:os