title: Kotlin splitting an Arraylist into parts at more than one Index
body: <p>Say I have an an Arraylist</p>
  
  <blockquote>
  <pre><code>fun main() {
  var myarrayList= ArrayList&lt;String&gt;()
  
  myarrayList.add("+23")
  myarrayList.add("-25")
  myarrayList.add("+125")
  myarrayList.add("+455")
  myarrayList.add("")
  myarrayList.add("*230")
  myarrayList.add("-293")
  myarrayList.add("/6")
  myarrayList.add("")
  myarrayList.add("+293")
  myarrayList.add("")
  myarrayList.add("+21")
  
  for (index in 0..myarrayList.size-1){
      print (index)
      print (" = ")
      print (myarrayList.get(index))
      print ("\n")
  
  
  } }
  </code></pre>
  </blockquote>
  
  <p>I want to split it into smaller Arraylists at every index where the value = "". I know I can use the indexOf() and lastIndexOf to slice it but I can only get 2 slices. I need to split into multiple arrays</p>