From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] List.cons and "::"
Date: Tue, 17 Jul 2007 23:33:40 +0100 [thread overview]
Message-ID: <200707172333.40589.jon@ffconsultancy.com> (raw)
In-Reply-To: <469D2055.5080408@gnu.org>
On Tuesday 17 July 2007 21:02:29 Sam Steingold wrote:
> Why is :: a syntax, not an infix version of List.cons
List.cons would be a function whereas :: is a type constructor for the 'a list
type:
# type 'a list = :: of 'a * 'a list;;
type 'a list = :: of 'a * 'a list
# let rec list = 1 :: list;;
val list : int list =
:: (1, ...
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?e
prev parent reply other threads:[~2007-07-17 22:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-17 20:02 Sam Steingold
2007-07-17 20:15 ` [Caml-list] " Brian Hurt
2007-07-17 20:38 ` Martin Jambon
2007-07-17 22:02 ` code17
2007-07-17 20:46 ` [Caml-list] " Chris King
2007-07-18 21:36 ` Pierre Etchemaïté
2007-07-17 22:33 ` Jon Harrop [this message]
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=200707172333.40589.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--cc=caml-list@yquem.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