title: How to use Swift set remove at method?
body: <p>I'm playing around with different data structures in Swift and I'm curious to know how to use the remove at function for Sets.  The <a href="https://developer.apple.com/documentation/swift/set/2831656-remove" rel="nofollow noreferrer">documentation</a> says the method accepts an index in which I though would be number however this doesn't work.  Can someone show me the proper way to use this method?</p>
  
  <pre><code>var girlfriends: Set = ["Karlie", "Francis", "Mya", "Zoe", "Daisy", "Bambi"]
  
  print(girlfriends)
  
  for _ in 1...10 {
      print(girlfriends)
  }
  
  girlfriends.insert("Joyce")
  
  print(girlfriends)
  
  girlfriends.insert("Bambi")
  
  print(girlfriends)
  
  girlfriends.insert("Vicki")
  
  print(girlfriends)
  
  // doesn't compile  var beach = girlfriends["Vicki"]
  
  // doesn't compile girlfriends.remove(at: 2)
  </code></pre>