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_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id C4BECBC6B for ; Thu, 8 Nov 2007 09:33:10 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAAtZMkdC+VyukGdsb2JhbACOfwEBAQEHAgYkBw X-IronPort-AV: E=Sophos;i="4.21,388,1188770400"; d="scan'208";a="19060920" Received: from ug-out-1314.google.com ([66.249.92.174]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Nov 2007 09:33:07 +0100 Received: by ug-out-1314.google.com with SMTP id m3so292734ugc for ; Thu, 08 Nov 2007 00:33:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=5a3YTAaJnfZN0oHDZ3oF/aQ1UBMNEGSLMdfJ+BIM7lI=; b=iYAL7nIEE+gED0YKxE/mPaElVFB67d+lM8vfShYCaFAI65df0kRRwGj8whxQ6z7ZpKEXbsoyIC/vuXxC6GRbJOgWqqaQRmBak8CPQ87AEhPIyXh6mgMBYl21QyoK/pFJAtW7OYXhNkohQybzrjN6zKzNs33BkMxUI9Qa8ILdbcA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=qSR47SmYZ8TKr15Ey0mul1a+1YNbNG8ps5CX4A9WZZ5vcOKTkHMOoCoguSBr6nekZJ8+Algov6hL/fXGkVYUyEI6s9qjMtR+CkO9YzlNg/3bb51nPvsMqymMQ2SIhKw+aF23vzJHzyVUrDfmJY+W5y1bAG2TtVWg55x+CRlNFvQ= Received: by 10.66.242.9 with SMTP id p9mr1955671ugh.1194510786917; Thu, 08 Nov 2007 00:33:06 -0800 (PST) Received: from ?192.168.1.34? ( [83.52.62.167]) by mx.google.com with ESMTPS id l33sm1195254ugc.2007.11.08.00.33.03 (version=SSLv3 cipher=OTHER); Thu, 08 Nov 2007 00:33:05 -0800 (PST) Cc: caml-list@yquem.inria.fr Message-Id: <240ED070-D810-4018-A5E4-FB043309D668@gmail.com> From: Joel Reymont To: Jon Harrop In-Reply-To: <200711080402.23754.jon@ffconsultancy.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Subject: Re: [Caml-list] Array comprehensions? Date: Thu, 8 Nov 2007 08:33:00 +0000 References: <13BD20E0-91E1-4D5E-9D90-8C4C17254668@gmail.com> <200711080402.23754.jon@ffconsultancy.com> X-Mailer: Apple Mail (2.912) X-Spam: no; 0.00; vectors:01 2007,:98 wrote:01 caml-list:01 curious:09 sort:12 but:14 nov:17 array:18 num:19 two:20 what:24 com:74 com:74 joel:26 On Nov 8, 2007, at 4:02 AM, Jon Harrop wrote: > Just curious, but what sort of comprehensions were you thinking of? This haskell-stype dot-product of two vectors: dotp :: Num a => [:a:] -> [:a:] -> a dotp xs ys = sumP [:x * y | x <- xs | y <- ys:] -- http://wagerlabs.com