[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Joel Reymont <joelr1@g...> |
| Subject: | Re: [Caml-list] Array comprehensions? |
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