English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2008-05-31 (10:03)
From: Fabrice Marchant <fabricemarchant@f...>
Subject: Re: [Caml-list] Compose function for multiple parameters ?
> 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.

Fabrice