From: "Bauer, Christoph" <Christoph.Bauer@lms-gmbh.de>
To: "'Jon Harrop'" <jon@jdh30.plus.com>
Cc: caml-list@inria.fr
Subject: AW: [Caml-list] Confused
Date: Wed, 15 Sep 2004 15:39:58 +0200 [thread overview]
Message-ID: <D981925B4F2CD611870300E0184CEE9B0157F29B@mail.lms-gmbh.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
> -----Ursprüngliche Nachricht-----
> Von: Jon Harrop [mailto:jon@jdh30.plus.com]
> Gesendet: Mittwoch, 15. September 2004 15:29
> An: caml-list@inria.fr
> Betreff: [Caml-list] Confused
>
>
>
> How come this works:
>
> # let rec build = function 0 -> [] | n -> 1e-6 :: build
> (n-1);; val build : int -> float list = <fun> # let test = 1.
> :: build 1000;; val test : float list = ...
>
> But this does not:
>
> # let rec build = function 0 -> [] | n -> 1e-6 :: build (n-1) in
> let test = 1. :: build 1000;;
> Syntax error
try
let rec build = function 0 -> [] | n -> 1e-6 :: build (n-1) in
let test = 1. :: build 1000 in test;;
Regards,
Christoph Bauer
[-- Attachment #2: Type: text/html, Size: 1743 bytes --]
reply other threads:[~2004-09-15 13:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=D981925B4F2CD611870300E0184CEE9B0157F29B@mail.lms-gmbh.de \
--to=christoph.bauer@lms-gmbh.de \
--cc=caml-list@inria.fr \
--cc=jon@jdh30.plus.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;
as well as URLs for NNTP newsgroup(s).