* [Caml-list] Infix
@ 2001-09-08 8:51 wduminy
0 siblings, 0 replies; 2+ messages in thread
From: wduminy @ 2001-09-08 8:51 UTC (permalink / raw)
To: CAML LIST
[-- Attachment #1: Type: text/plain, Size: 63 bytes --]
Hello there,
How do you define an infix operator in OCAML?
[-- Attachment #2: Type: text/html, Size: 435 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Infix
@ 2001-09-08 14:35 Arturo Borquez
0 siblings, 0 replies; 2+ messages in thread
From: Arturo Borquez @ 2001-09-08 14:35 UTC (permalink / raw)
To: wduminy; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-09-08 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-08 8:51 [Caml-list] Infix wduminy
2001-09-08 14:35 Arturo Borquez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox