Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
optimization of sequence of and inlining
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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 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 :-)


Richard Jones
Red Hat