Iterating over an NSOrderedSet

后端 未结 3 1593
傲寒
傲寒 2021-02-18 18:40

I\'m trying to iterate over an instance of NSOrderedSet. Something like this:

func myFunc() {
    var orderedSet = NSOrderedSet(array: [ 42, 43, 44])

    for n          


        
3条回答
  •  野性不改
    2021-02-18 19:38

    NSOrderedSet doesn't conform to SequenceType. NSOrderedSet is subclass of NSObject and not NSSet as one could imagine. I guess Apple engineers overlooked it.

提交回复
热议问题