From: Oleg <oleg_inconnu@myrealbox.com>
To: Michael Vanier <mvanier@cs.caltech.edu>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Pattern matching missing (or brain damage?)
Date: Sat, 20 Jul 2002 11:28:11 -0400 [thread overview]
Message-ID: <200207201526.LAA07521@dewberry.cc.columbia.edu> (raw)
In-Reply-To: <200207182236.g6IMaJG11734@orchestra.cs.caltech.edu>
On Thursday 18 July 2002 06:36 pm, Michael Vanier wrote:
> # match a with
> A(_) | B(_) | C(_) -> "foo"
> | C(_) | D(_) | E(_) -> "bar";;
> - : string = "foo"
>
> You put in an extra | before the A(_).
It's optional
Regards,
Oleg
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-07-20 15:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 22:22 Alessandro Baretta
2002-07-18 22:36 ` Michael Vanier
2002-07-20 15:28 ` Oleg [this message]
2002-07-19 0:08 ` William Lovas
2002-07-19 1:09 ` Alessandro Baretta
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=200207201526.LAA07521@dewberry.cc.columbia.edu \
--to=oleg_inconnu@myrealbox.com \
--cc=caml-list@inria.fr \
--cc=mvanier@cs.caltech.edu \
/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