Browse thread
optimization of sequence of List.map and inlining
-
Charles Hymans
-
Jon Harrop
- Richard Jones
- Peng Zang
- Brian Hurt
- Jon Harrop
-
Jon Harrop
[
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: | 2008-06-10 (20:55) |
From: | Richard Jones <rich@a...> |
Subject: | Re: [Caml-list] optimization of sequence of List.map and inlining |
On Tue, Jun 10, 2008 at 08:21:36PM +0100, Jon Harrop wrote: > In MLs, you deforest by hand. You might like to use a function composition > operator like << from F#: > > let lst = map (f << f) lst One word of caution from someone who redefined << and >> as shift operators in thousands of lines of code, then had to convert them back again: << and >> aren't a good choice for operator name because they clash with the quotation system in camlp4. So the original poster might want to choose another name if they're using camlp4 :-) Rich. -- Richard Jones Red Hat