Version française
Home     About     Download     Resources     Contact us    
Browse thread
Simple idea for making a function infix
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris King <colanderman@g...>
Subject: Re: [Caml-list] Simple idea for making a function infix
On 11/13/06, Keisuke Nakano <ksk@mist.i.u-tokyo.ac.jp> wrote:
> We use the following two infix operators.
>
>    let ( /* ) x y = y x
>    and ( */ ) x y = x y
>
> Then we can make an infix operator /*f*/ for a binary function f.

That's great, I've also wished that O'Caml had syntax like this.  I
hope this makes it to the O'Caml FAQ page!

- Chris King