Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Martin DeMello <martindemello@gmail.com>
To: Jeremy Yallop <yallop@gmail.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] intersections of polymorphic variants
Date: Thu, 9 Feb 2017 02:03:02 -0800	[thread overview]
Message-ID: <CAFrFfuFa+WwY87vE5HjQen8Godaz0R_vur1-3+GQM4Uu3oUmTA@mail.gmail.com> (raw)
In-Reply-To: <CAAxsn=F4EoBvyJnZG_3xoSgOEzwgRKGy3AAWszF-DzxozBS3yA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

On Thu, Feb 9, 2017 at 1:57 AM, Jeremy Yallop <yallop@gmail.com> wrote:

> >
> > let state_of_value v = match v with
> >   | `Red  | `Blue  | `Green -> ?????
> >   | `Missing -> Missing
>
>   let state_of_value v = match v with
>     | (`Red  | `Blue  | `Green) as c -> Color (color_index c)
>     | `Missing -> Missing
>

perfect, thanks!

martin

[-- Attachment #2: Type: text/html, Size: 812 bytes --]

  reply	other threads:[~2017-02-09 10:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09  9:52 Martin DeMello
2017-02-09  9:57 ` Jeremy Yallop
2017-02-09 10:03   ` Martin DeMello [this message]
2017-02-09 15:15     ` Ashish Agarwal

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=CAFrFfuFa+WwY87vE5HjQen8Godaz0R_vur1-3+GQM4Uu3oUmTA@mail.gmail.com \
    --to=martindemello@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=yallop@gmail.com \
    /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