title: How to use List.nth inside a function
body: <p>I am new to OCaml. I am trying to use List.nth just like List.length but it keeps giving me a syntax error or complains about not matching the interface defined in another file. Everything seems to work fine if I comment out using List.nth</p>
  
  <p>Thanks</p>