caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ville-Pertti Keinonen <will@exomi.com>
To: Oliver Bandel <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Strange matching-problem... ?!
Date: Thu, 27 Jan 2005 14:31:32 +0200	[thread overview]
Message-ID: <1106829092.663.3.camel@localhost> (raw)
In-Reply-To: <1106828434.41f8dc9213b6e@webmail.in-berlin.de>

On Thu, 2005-01-27 at 13:20 +0100, Oliver Bandel wrote:

> # match Foo with
>    _Foo -> "foo"
>   |Bar -> "bar";;
> Warning: this match case is unused.
> - : string = "foo"

Here, you're matching the value Foo against a catch-all pattern with a
variable called _Foo.  This is equivalent to writing:

match <anything> with
   x -> "foo"
 | <anything> -> "bar"

The first case matches any value.



  reply	other threads:[~2005-01-27 12:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-27 12:20 Oliver Bandel
2005-01-27 12:31 ` Ville-Pertti Keinonen [this message]
2005-01-27 12:33 ` [Caml-list] " Frederic van der Plancke

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=1106829092.663.3.camel@localhost \
    --to=will@exomi.com \
    --cc=caml-list@inria.fr \
    --cc=oliver@first.in-berlin.de \
    /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;
as well as URLs for NNTP newsgroup(s).