title: List of Records in F#?
body: <p>How do you work with a List of Records in F#? How would you even pass that as an argument in a function?  I want to do something like this:</p>
  
  <pre><code>type Car = {
    Color : string;
    Make : string;
    }
  
  let getRedCars cars =
    List.filter (fun x -&gt; x.Color = "red") cars;
  
  let car1 = { Color = "red"; Make = "Toyota"; }
  let car2 = { Color = "black"; Make = "Ford"; }
  let cars = [ car1; car2; ]
  </code></pre>
  
  <p>I need a way to tell my function that "cars" is a List of Car records.</p>