Browse thread
Re: [Caml-list] Infix
- Arturo Borquez
[
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: | 2001-09-08 (14:35) |
From: | Arturo Borquez <aborquez@a...> |
Subject: | Re: [Caml-list] Infix |
On Sat, 08 September 2001, "wduminy" wrote: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> > <META content="MSHTML 5.00.2919.6307" name=GENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=#ffffff> > <DIV><FONT face=Arial size=2>Hello there,</FONT></DIV> > <DIV><FONT face=Arial size=2>How do you define an infix operator in > OCAML?</FONT></DIV> > <DIV> </DIV></BODY></HTML> See documentation chapter 6.3 titled Naming objects example: complex addition # let ( +! ) a b = fst a +. fst b, snd a +. snd b;; val ( +! ) : float * float -> float * float -> float * float = <fun> # (3.0, 3.0) +! (1.0, 2.0);; - : float * float = 4, 5 Regards. Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr