title: How to change all the elements of a list that are equal?
body: <p>How can I replace all elements of a list which are equal to <code>c</code> to <code>t</code> in OCaml?</p>
  
  <p>I have tried <code>List.filter</code> without success:</p>
  
  <pre><code>List.fold_right (fun c -&gt; t) (List.filter c myLst) []
  </code></pre>
  
  <p>Does the <code>List</code> module contain a function for this task?</p>