Version française
Home     About     Download     Resources     Contact us    
Browse thread
Compose function for multiple parameters ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Martin Jambon <martin.jambon@e...>
Subject: Re: [Caml-list] Compose function for multiple parameters ?
On Sat, 31 May 2008, Fabrice Marchant wrote:

>> It would be cooler to write the later on the basis of :
>> (( <<- ) (( <<- ) f)) g
>
> Sorry, I just discover that this is cleaner :
> (( <<- ) <<- ( <<- ))
>
> and extendable to any number of parameters.
>
> (( <<- ) <<- ( <<- ) <<- ( <<- ))
> to compose with a 3 parameters function.

Personally, I call this obfuscated, not clean.


Martin

--
http://wink.com/profile/mjambon
http://mjambon.com