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: | 2006-11-13 (14:31) |
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