How can I convert an array of elements to the individual elements for variable element method in Scala? : <p>I'm wondering if it's possible to convert an array of elements to the elements themselves. For my example, I'm trying to pass individual strings into a function whose arguments are a variable number of strings. I currently have an array of strings and am trying to pass them into .toDF (which takes a variable number of strings). This is what I have:</p>

<p>.toDF((df.columns)</p>

<p>How can I convert this array into the individual elements?</p>
