Browse thread
Simple idea for making a function infix
[
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: | -- (:) |
| From: | Till Varoquaux <till.varoquaux@g...> |
| Subject: | Re: [Caml-list] Simple idea for making a function infix |
My mistake... Sorry, seems like I've been very absent minded today... Till On 11/13/06, Karl Zilles <zilles@1969web.com> wrote: > Till Varoquaux wrote: > > First of all, sorry for the garbage on top of my last mail: > > my computer hates me > > > > -to Jean Christophe: indeed, that's actually the composition function..... > > -to skaller: Hum, I *should* have tested more thoroughly my "solution": > > > > let ( /* ) x y = y x > > and ( */ ) x y = x y > > > > let sub = (-) > > > > 4 /*sub 5 > > (* is -1 *) > > 4 /*sub*/ 5 > > (* is 1 *) > > You mean exactly the opposite, right? > > # 4 /*sub 5 > - : int = 1 > # 4 /*sub*/ 5 > - : int = -1 > > Pardon if I'm just not keeping up with the conversation. > >