title: How to turn an array of an array of doubles into string, Swift
body: <p>I have an array of array of doubles. How do you convert that to a single string printed on the console? </p>
  
  <p>I need to create a function that takes in an array of arrays of doubles as a parameter and returns a string object. Then loop through each of the inner arrays and concatenate each element of the inner arrays into a String object. But I'm not sure how to go about that. </p>
  
  <pre><code>var array1 = [2.6, 6.7, 7.2, 4.1, 3.1]
  var array2 = [1.2, 3.5, 2.8, 4.5, 6.4]
  var array3 = [1.2, 1.3, 1.4, 1.5, 1.6]
  
  var nestedArray = [array1, array2, array3]
  </code></pre>
  
  <p>This is the code I have... but i don't know how to do a for loop that would give me my answer...</p>
  
  <pre><code>func nestedFunction(nestedArray: [[Double]]) -&gt; String {
      var stringVar: String = ""
  
      ( for loop here... )
  
      return stringVar
  }
  
  print(nestedArrayFunction(nestedArray))
  </code></pre>
  
  <p>The expected output should be a string object, with no brackets </p>