Hi friends, I am a novice to the OCAML language. I am trying to write a small program and I am facing with a syntax error, any help will be appreciated let rec undup lst = try match lst with |[]->[] |h::tail -> match tail with |[]->[] |h::xt -> if (h=List.hd xt) then h::undup xt else raise(Failure "ERROR-Your list does not contain duplicates");; Error: line 6, characters 67-69 Syntax error. Bhavik Gandhi