title: Syntax Error in Ocaml Function
body: <p>I am getting a syntax  error on the last line of this function:</p>
  
  <pre><code>let rec countAll(doorlist, count) =
      let listdoor = [];
      countZero(doorlist, count) :: listdoor;
      countOne(doorlist, count) :: listdoor;
      countTwo(doorlist, count) :: listdoor;;
  </code></pre>
  
  <p>I might be confused about how to return something from an Ocaml function. I want to return "listdoor", which is supposed to be a list containing the output of the functions countZero, countZero and countTwo.</p>
  
  <p>I'm getting a syntax error on the last lint, last few characters of this code:</p>
  
  <pre><code>File "MonteeHall.caml", line 30, characters 38-40:
  Error: Syntax error
  </code></pre>