title: Appending an element to a collection using LINQ
body: <p>I am trying to process some list with a functional approach in C#.</p>
  
  <p>The idea is that I have a collection of <code>Tuple&lt;T,double&gt;</code> and I want to change the <code>Item 2</code> of some element <code>T</code>.</p>
  
  <p>The functional way to do so, as data is immutable, is to take the list, filter for all elements where the element is different from the one to change, and the append a new tuple with the new values.</p>
  
  <p>My problem is that I do not know how to append the element at the end. I would like to do:</p>
  
  <pre><code>public List&lt;Tuple&lt;T,double&gt;&gt; Replace(List&lt;Tuple&lt;T,double&gt;&gt; collection, T term,double value)
  {
     return collection.Where(x=&gt;!x.Item1.Equals(term)).Append(Tuple.Create(term,value));
  }
  </code></pre>
  
  <p>But there is no <code>Append</code> method. Is there something else?</p>