title: Why aren't the entries in a Kotlin Pair mutable?
body: <p>I have a MutableList of Pairs and I'd like to decrement the value of the first entry so my condition my pass(change):</p>
  
  <pre><code>while(n &gt; 0) {
      if(sibice[i].first &gt; 0) {
          sum += sibice[i].second
          //sibice[i].first-- will not compile
          n--
      } else i++
  }
  </code></pre>
  
  <p>But the Pair class doesn't let me do that, besides creating my own pair is there any other workaround and why is this even the case?</p>