title: Iterating over split string
body: <p>After looking for a while, it's still bugging me:</p>
  
  <p>I have a simple code where I want to retrieve data looking like:</p>
  
  <pre><code>data1/data2/style…
  </code></pre>
  
  <p>and I want to separate the data at each <code>/</code>. So I have written:</p>
  
  <pre><code>MyData = data.split("/")
  </code></pre>
  
  <p>and then:</p>
  
  <pre><code>for (i = 0; i &lt; myData.size; i++) 
  </code></pre>
  
  <p>to iterate over the values. But I'm getting the following error:</p>
  
  <pre><code>no signature of method length for type argument: () values: []
  </code></pre>
  
  <p>so I'm assuming that <code>myData</code> is empty.</p>