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.1 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 06E7ABBAF for ; Sun, 4 Oct 2009 19:08:27 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgkFAIpzyErZCiKb/2dsb2JhbACBUs0SgmmBQQSBUlQ X-IronPort-AV: E=Sophos;i="4.44,503,1249250400"; d="scan'208";a="35612748" Received: from av6800.comex.ru (HELO home.mk.pp.ru) ([217.10.34.155]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Oct 2009 19:08:26 +0200 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 5D66820A7E for ; Sun, 4 Oct 2009 21:08:25 +0400 (MSD) Received: by ermine.home (Postfix, from userid 1000) id 784251B58E2; Sun, 4 Oct 2009 21:08:24 +0400 (MSD) Date: Sun, 4 Oct 2009 21:08:24 +0400 From: Anastasia Gornostaeva To: caml-list@yquem.inria.fr Subject: camlp4 + array Message-ID: <20091004170824.GB46755@ermine.home> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam: no; 0.00; camlp:01 expr:01 expr:01 int:01 let:03 fold:06 fun:08 should:13 left:85 some:14 code:17 code:17 hello:17 write:17 produces:17 Hello. The code let pl = Array.fold_left (fun ls l -> <:expr< $ls$; $`int:l$ >>) <:expr<>> some_array in <:expr< [| $pl$ |] >> produces somelike [| (1; 2; 3; 4) |], i.e the pl in () brackets. How should I do write this code properly? ermine