title: How to convert nested array to a flat array?
body: <p>I have a nested array:
  <code>Array("AA", Array("BB", "CC"), "DD")</code>. How can I convert it into:
  <code>Array("AA", "BB", "CC", "DD")</code> in Scala? </p>
  
  <p>Thanks for help!</p>