title: In Swift, how to make several copies of an object?
body: <p>I am trying to make several copies of an object to then append into an array. I am converting my object into a NSObject to use the method "copy()", however, I want to have "n" copies of this object instantly and append them all into an existing array. For instance, see below:</p>
  
  <pre><code> var okay = "okay"
   var NSOkay = okay as NSObject
   var copyOkay: AnyObject = NSOkay.copy()
  
   var array = [String]()
   array.append(copyOkay as! String)
  </code></pre>
  
  <p>However, this will append a unique copy of my item. Lets say, I wish to append 10 copies of the item, how would I then do ? </p>
  
  <p>Thank you very much,</p>