title: Join results of for into one string
body: <p>I have places stored in core data in an entity called "Places" that has an attribute called "name". My current for loop to return each name works well, and the print in the console shows all of the names as expected. Currently, the console shows each one on a separate line, as they are from separate places. Is it possible to fetch all names from each place and store then in a single string. Here is the current code:</p>
  
  <pre><code>    do {
          let results = try myContext.executeFetchRequest(fetchRequest) as! [Places]
  
              for places in results{         
                  let array = [places.name!].joinWithSeparator(", ")
                  print(array)
              }
  
      } catch let error as NSError {
          // failure
          print("Fetch failed: \(error.localizedDescription)")
      }
  }
  </code></pre>
  
  <p>Here is the output, that is on each line (which shows they are separate objects), but i'd like them to be in one string (and printed on the same line with a comma separator) </p>
  
  <p><a href="http://i.stack.imgur.com/zoY63.png" rel="nofollow">Output</a></p>
  
  <p>The output I would like printed is:
  France, Germany, Poland, Hungary, Serbia</p>
  
  <p>Thank you for reading, I hope you can help me!</p>