From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id BD8827F869 for ; Mon, 10 Mar 2014 11:20:06 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of ygrek@autistici.org) identity=pra; client-ip=178.255.144.35; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrek@autistici.org"; x-sender="ygrek@autistici.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of ygrek@autistici.org designates 178.255.144.35 as permitted sender) identity=mailfrom; client-ip=178.255.144.35; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrek@autistici.org"; x-sender="ygrek@autistici.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@contumacia.investici.org designates 178.255.144.35 as permitted sender) identity=helo; client-ip=178.255.144.35; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="ygrek@autistici.org"; x-sender="postmaster@contumacia.investici.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4BAGiRHVOy/5AjnGdsb2JhbABaxVMLgREWDgEBAQEBCAsJCRQogiUBAQEDAToGAQE4BAsLCRglD0gGE4dxDK1IhFUBBZ0nEQaNc28uhAqJU4YHiG4BhkyPGw X-IPAS-Result: As4BAGiRHVOy/5AjnGdsb2JhbABaxVMLgREWDgEBAQEBCAsJCRQogiUBAQEDAToGAQE4BAsLCRglD0gGE4dxDK1IhFUBBZ0nEQaNc28uhAqJU4YHiG4BhkyPGw X-IronPort-AV: E=Sophos;i="4.97,622,1389740400"; d="scan'208";a="51974881" Received: from contumacia.investici.org ([178.255.144.35]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 10 Mar 2014 11:19:44 +0100 Received: from [178.255.144.35] (contumacia [178.255.144.35]) (Authenticated sender: ygrek@autistici.org) by localhost (Postfix) with ESMTPSA id C5881E8537 for ; Mon, 10 Mar 2014 10:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1394446780; bh=Z4/rlFSentBboYgCwsbs9lMw6v6tlqB68DMFzMcviqY=; h=Date:From:To:Subject:In-Reply-To:References; b=VbWJvjQKxKV1vtqngVhRTD0Dsr8Tl/vfdqKlujILhLvsszK3DwZf6p2qbC1NqHF8u aWSF0p1IeTSDg3OFOTBgTgHdEg1JQqiVlvlA69PIony6v/rKmm73iuO9UUngfOr82f WPdRrDqiRvk90LTtTiVUow41z/WzaQQmuyL2KE+c= Date: Mon, 10 Mar 2014 18:19:36 +0800 From: ygrek To: Ocaml Mailing List Message-ID: <20140310181936.5d70182a@kiwi.local.tld> In-Reply-To: <62822885-676F-4397-9619-A2C390056153@ieee.org> References: <20140307221234.GA14634@lenat> <62822885-676F-4397-9619-A2C390056153@ieee.org> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] Batteries Included syntax extensions? On Mon, 10 Mar 2014 14:12:07 +0400 Ivan Gotovchits wrote: > By the way, list comprehension is already included in standard ocaml distribution. It is not as mighty as batteries one, and slightly differs in syntax: > > [ x / 2 | x <- [ 2;4;6] ] Wut? Can you elaborate on this? $ ocaml -init - OCaml version 4.01.0 # [ x / 2 | x <- [ 2;4;6] ];; Characters 8-9: [ x / 2 | x <- [ 2;4;6] ];; ^ Error: Syntax error --