title: Create a string separated with new lines (\n) from an Array using Swift
body: <p>I am facing a problem during the development of my iOS application, what I am trying to achieve is to create a single string from an array of strings. The array contains the address of a given location, obtained from a reverse geocoding using <code>CLGeocoder</code>, this is the code that gives me the array of strings:</p>
  
  <pre><code>let userCoordinates = CLLocation(latitude: mapView.userLocation.location!.coordinate.latitude, longitude: mapView.userLocation.location!.coordinate.longitude)
  
  CLGeocoder().reverseGeocodeLocation(userCoordinates, completionHandler: {
      placemark, error in
  
      let reverseGeocodedLocation = placemark?.first?.addressDictionary?["FormattedAddressLines"] as? [String]
  }
  </code></pre>
  
  <p><code>reverseGeocodedLocation</code> in my case is:</p>
  
  <pre><code>["Apple Inc.", "Cupertino, CA  95014", "United States"]
  </code></pre>
  
  <p>The result string should separate the strings in the array and present them in a multi-line format like this:</p>
  
  <pre><code>Apple Inc.
  Cupertino, CA 95014
  United States
  </code></pre>
  
  <p>I have tried searching on the web for a solution and I found this code that should do that, and this could be the solution:</p>
  
  <pre><code>print("\n".join(reverseGeocodedLocation.map({$0})))
  </code></pre>
  
  <p>But the compiler says:</p>
  
  <blockquote>
    <p>Cannot invoke 'join' with an argument list of type '([String]?)'</p>
  </blockquote>