caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Adrien <camaradetux@gmail.com>
To: "Nathaniel Gray" <n8gray@gmail.com>
Cc: skaller <skaller@users.sourceforge.net>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] List comprehensions
Date: Wed, 22 Aug 2007 10:54:12 +0200	[thread overview]
Message-ID: <666572260708220154o58445061ta735b2400762d03e@mail.gmail.com> (raw)
In-Reply-To: <aee06c9e0708201555v4df486cag4af37972205b982b@mail.gmail.com>

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

I just tried this to avoid a big block of ugly code but it doesn't work with
3.09:

# [x + 2*x + x/2 | x <- [1; 2; 3; 4]];;
Characters 15-16:
  [x + 2*x + x/2 | x <- [1; 2; 3; 4]];;
                       ^
Syntax error


So it's a very recent addition, no surprise you didn't know had this. ;)



---

Adrien Nader

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

      reply	other threads:[~2007-08-22  8:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-18 14:28 Jon Harrop
2007-08-18 14:44 ` [Caml-list] " Joel Reymont
2007-08-18 14:46   ` Jon Harrop
2007-08-19 10:26   ` Nicolas Pouillard
2007-08-18 14:54 ` skaller
2007-08-20 22:55   ` Nathaniel Gray
2007-08-22  8:54     ` Adrien [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=666572260708220154o58445061ta735b2400762d03e@mail.gmail.com \
    --to=camaradetux@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=n8gray@gmail.com \
    --cc=skaller@users.sourceforge.net \
    /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).