title: clojure split string into different size chunks
body: <p>I'm trying to split a string into n chunks of variable sizes.</p>
  
  <p>As input I have a seq of the sizes of the different chunks:</p>
  
  <pre><code>(10 6 12)
  </code></pre>
  
  <p>And a string:</p>
  
  <pre><code>"firstchunksecondthirdandlast"
  </code></pre>
  
  <p>I would like to split the string using the sizes as so:</p>
  
  <pre><code>("firstchunk" "second" "thirdandlast")
  </code></pre>
  
  <p>As a newbie I still have a hard time wrapping my head around the most idiomatic way to do this.</p>