title: Swift: Convert an array of objects into a string?
body: <p>I want to convert an array of users into a string of their names.</p>
  
  <p>For example:</p>
  
  <pre><code>class User {
      var name: String
  
      init(name: String) {
          self.name = name
      }
  }
  
  let users = [
      User(name: "John Smith"),
      User(name: "Jane Doe"),
      User(name: "Joe Bloggs")
  ]
  </code></pre>
  
  <ol>
  <li><p>Is this a good way to get the <code>String</code>: <code>"John Smith, Jane Doe, Joe Bloggs"</code>?</p>
  
  <pre><code>let usersNames = users.map({ $0.name }).joinWithSeparator(", ")
  </code></pre></li>
  <li><p>What if I want the last comma to be an ampersand? Is there a swift way to do that, or would I need to write my own method?</p></li>
  </ol>