Browse thread
[Caml-list] Facing syntax error.
- Bhavik Gandhi (hotmail)
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Bhavik Gandhi (hotmail) <bhavik_gandhi@h...> |
| Subject: | [Caml-list] Facing syntax error. |
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