From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 03204BC68 for ; Mon, 13 Nov 2006 19:29:11 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kADITAwk009538 for ; Mon, 13 Nov 2006 19:29:10 +0100 Received: by ug-out-1314.google.com with SMTP id k3so1020449ugf for ; Mon, 13 Nov 2006 10:29:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LGXiBiEm3zhf+xS7DQeDyuY/rmyFvWC6fuHpYpVAxWU/3THejf4u57lSO8rz6WZpFLVSRuf3BJCsIZXIISfcAI1BLvpBmptCbZxlI0+7TzjX1AUtgbL1MbehZCTkgIr8i2dImK/WrpP+BqYf3ME+RrE9rXpbIXBP1DTEKO9S1xk= Received: by 10.82.114.3 with SMTP id m3mr49797buc.1163442549830; Mon, 13 Nov 2006 10:29:09 -0800 (PST) Received: by 10.82.153.16 with HTTP; Mon, 13 Nov 2006 10:29:09 -0800 (PST) Message-ID: <9d3ec8300611131029q482cbc73g5cfcf33c4828e18e@mail.gmail.com> Date: Mon, 13 Nov 2006 19:29:09 +0100 From: "Till Varoquaux" To: caml-list@inria.fr Subject: Re: [Caml-list] Simple idea for making a function infix In-Reply-To: <1163440715.5452.12.camel@rosella.wigram> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1EB857FD-F706-419C-9181-D45DEA88B756@mist.i.u-tokyo.ac.jp> <9d3ec8300611130819q7e13d5f4mb84b9fb1a2ac74ae@mail.gmail.com> <1163440715.5452.12.camel@rosella.wigram> X-j-chkmail-Score: MSGID : 4558B976.002 on discorde : j-chkmail score : X : 0/20 1 X-Miltered: at discorde with ID 4558B976.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; infix:01 christophe:01 .....:98 garbage:01 caml-list:01 let:03 let:03 indeed:07 function:08 function:08 hum:08 top:89 actually:10 composition:11 idea:12 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 *) Regards, Till