title: How to delete item from dictionary and change key of others F#
body: <p>I'm looking to create a function that takes in a value, finds the value in the dictionary, and then deletes it, while also going through the dictionary and making the key of the values afterwards one less, like so (the keys of values in the dictionary are int values from 1 and up):</p>
  
  <pre><code>let deleteitem (item: Gitem) = 
      let mutable count = 1
      while count&lt;=invendict.Count do
          let testitem = invendict.Item[count]
          if item = testitem then
              invendict.Remove[count]
          //from here, look at every value, whos key is higher than the key of 
          the removed value, and decreases the key by one, till every value is looked at
  </code></pre>