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: Florent Monnier <fmonnier@l...>
Subject: Re: [Caml-list] Compose function for multiple parameters ?
Fabrice Marchant a écrit :
...
> Defining the 2 ops :
> let ( <<- ) f g x = f (g x)
> let ( <<-- ) f g x y = f (g x y)
>
> is it better ?


let ( <>- ) f g x = f (g x)
let ( <><>- ) f g x y = f (g x y)
let ( <><><>- ) f g x y z = f (g x y z)

perhaps?
(more easy to count the number of caracters with this kind of pattern)

-- 
Cheers
Florent