From: Dario Teixeira <darioteixeira@yahoo.com>
To: "Stéphane Gimenez" <stephane.gimenez@pps.jussieu.fr>,
"The Caml Mailing List" <caml-list@inria.fr>,
boris@yakobowski.org
Subject: Re: [Caml-list] type generalization of recursive calls
Date: Wed, 17 Feb 2010 12:25:16 -0800 (PST) [thread overview]
Message-ID: <751552.2250.qm@web111505.mail.gq1.yahoo.com> (raw)
In-Reply-To: <76c7f53f1002171141y68374f94u11d0ac807ccfee89@mail.gmail.com>
Hi,
> Finally, starting from Ocaml 3.13, you can simply write
>
> let rec map : 'a 'b. ('a -> 'b) -> 'a t -> 'b t =
> fun f -> function
> | E -> E
> | D (t1, t2) -> D (map f t1, map f t2)
> | O a -> O (f a)
> | I tt -> I (map (map f) tt)
Assuming "3.13" is not a typo, and that you do not actually mean the
upcoming 3.12, what features can we expect in future versions of Ocaml?
Just curious,
Dario Teixeira
next prev parent reply other threads:[~2010-02-17 20:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 16:34 Stéphane Gimenez
2010-02-17 19:41 ` [Caml-list] " Boris Yakobowski
2010-02-17 20:25 ` Dario Teixeira [this message]
2010-02-17 20:33 ` Boris Yakobowski
2010-02-18 14:24 ` Stéphane Gimenez
2010-02-17 17:59 [Caml-list] " Damien Guichard
2010-02-17 18:13 Damien Guichard
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=751552.2250.qm@web111505.mail.gq1.yahoo.com \
--to=darioteixeira@yahoo.com \
--cc=boris@yakobowski.org \
--cc=caml-list@inria.fr \
--cc=stephane.gimenez@pps.jussieu.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;
as well as URLs for NNTP newsgroup(s).