From: "Bhavik Gandhi \(hotmail\)" <bhavik_gandhi@hotmail.com>
To: <caml-list@inria.fr>
Subject: [Caml-list] Facing syntax error.
Date: Tue, 14 Oct 2003 18:49:11 -0800 [thread overview]
Message-ID: <000401c392c6$e9c5a550$0900a8c0@maverick> (raw)
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 5914 bytes --]
next reply other threads:[~2003-10-14 22:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 2:49 Bhavik Gandhi (hotmail) [this message]
2003-10-14 23:38 ` Matt Gushee
2003-10-15 7:51 ` Stefano Zacchiroli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000401c392c6$e9c5a550$0900a8c0@maverick' \
--to=bhavik_gandhi@hotmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox