From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 5ECF9BC69 for ; Wed, 22 Aug 2007 10:54:15 +0200 (CEST) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7M8sEuf008278 for ; Wed, 22 Aug 2007 10:54:14 +0200 Received: by py-out-1112.google.com with SMTP id u52so199507pyb for ; Wed, 22 Aug 2007 01:54:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=E+6QH2en9gMaShTwVwznH0u+evzbpudwTI4kMSj31ZxaywfadtVmfMh0Rll9f2ncNQNu743/gcOKMaQSRPaJZXHA8JjIvfjpJkUNkar/us/paGHuKy2g2y7WuNamqiepxCDYtQOLNYLIc9gjsVU5hEFWVvN1mYPAd2FHF5Znl+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=cUR2HFCmUtcBGyfmywV6u//PqWoUIpKlPrSDPt9zPZmPBam6yXTiwMjQP/KQXXcW7x6p+N6L2uFMCL3c5cQyk6E/dItoeTtm+4LvBjJxko0Ze7a56gZyFm5Vj5lC3NMCzqFVEDc3dl+DGytdu4s+eB/xp37hd8I/bpLhv/IQpfI= Received: by 10.35.85.1 with SMTP id n1mr503895pyl.1187772852842; Wed, 22 Aug 2007 01:54:12 -0700 (PDT) Received: by 10.35.71.16 with HTTP; Wed, 22 Aug 2007 01:54:12 -0700 (PDT) Message-ID: <666572260708220154o58445061ta735b2400762d03e@mail.gmail.com> Date: Wed, 22 Aug 2007 10:54:12 +0200 From: Adrien To: "Nathaniel Gray" Subject: Re: [Caml-list] List comprehensions Cc: skaller , caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11069_7501975.1187772852799" References: <200708181528.18107.jon@ffconsultancy.com> <1187448871.10363.69.camel@rosella.wigram> X-j-chkmail-Score: MSGID : 46CBF9B6.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46CBF9B6.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; syntax:01 syntax:01 W10:98 caml-list:01 W11:96 ugly:04 ugly:04 nader:05 nader:05 3.09:08 3.09:08 doesn't:12 doesn't:12 error:12 error:12 ------=_Part_11069_7501975.1187772852799 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_11069_7501975.1187772852799 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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
------=_Part_11069_7501975.1187772852799--