title: Assign a value to array by index in Liquid
body: <p>I am inside of a bit complex loops and I need to assign a value to an array by index, so that if the value is already there it will replace it, if not it will create it.</p>
  
  <p>So I need to do something like this:</p>
  
  <pre><code>{% assign arr = '' | split: '' %}
  {% assign arr[index] = value %}
  </code></pre>
  
  <p>which is not working, the array is still empty.</p>
  
  <p>Is there any workaround to do this?</p>