SWIFT / IOS / Dictionary / Generator / Sequence
I have created a ordered dictionary using blogpost http://timekl.com/blog/2014/06/02/learning-swift-ordered-dictionaries/
As described in blog, I have implemented subscripts for this class to access member of the underlying dictionary.
Now to traverse the dictionary in FOR IN loop for (key, value) in orderedDict
I understand i have to write a Generator and Sequence. I also know the two protocols. From another blog, http://natashatherobot.com/swift-conform-to-sequence-protocol/ I am trying to create a generator specific to my dictionary but unable to do so. Any help in this regard will be very helpful