title: ImmutableJS - update value in a List
body: <p>I have a Map like this (in ImmutableJS):</p>
  
  <pre><code>{arrayOfValues: [
    {one: {inside: 'first in array'}},
    {one: {inside: 'second in array'}}
  ]}
  </code></pre>
  
  <p>And I want to update the value "inside" in the second entry in the "arrayOfValues" array. How can I do it? This is what I have now and it says "Uncaught Error: invalid keyPath"</p>
  
  <pre><code>theMap.update('arrayOfValues',(list)=&gt;{
    return list.setIn([1,'one','inside'],'updated value'); 
  })
  </code></pre>
  
  <p>I also tried directly this and it didn't work:</p>
  
  <pre><code>theMap.setIn(['arrayOfValues',1,'one','inside'],'updated value');
  </code></pre>
  
  <p>After several hours of looking for the solution, I appreciate any help. Thank you.</p>