Skip to content

Instantly share code, notes, and snippets.

@phynet
Created September 23, 2015 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phynet/5e9ecddb30be69963539 to your computer and use it in GitHub Desktop.
Save phynet/5e9ecddb30be69963539 to your computer and use it in GitHub Desktop.
let orderedSet = NSOrderedSet(array: [ 42, 43, 44])
var enumarator = orderedSet.reversedOrderedSet
print(enumarator)
for elem in orderedSet {
print("elements \(elem)")
}
var foodSet = Set(["Pablo", "José", "Sofia"])
foodSet.contains("Salad")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment