From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 1C8EFBBBA for ; Thu, 1 Dec 2005 03:00:30 +0100 (CET) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jB120T9l018239 for ; Thu, 1 Dec 2005 03:00:29 +0100 Received: by zproxy.gmail.com with SMTP id i11so156435nzi for ; Wed, 30 Nov 2005 18:00:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cBliLXx+zuSIOlfQccqMinxrkilsOIJPuedTl8/gxtxPUIcjq8DEU78GWQRWGbZ+3WdXkeKlgnWRXmHUiSj/mkBKT5xRdF/qRaUCHJhE0aVmMFyWcLVol4g/5EYlQF2r6llAVToy8zqBZKJ0cOPXJDslywFNzX2rdBkp7FpUjzc= Received: by 10.65.188.14 with SMTP id q14mr570013qbp; Wed, 30 Nov 2005 18:00:28 -0800 (PST) Received: by 10.65.35.10 with HTTP; Wed, 30 Nov 2005 18:00:28 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2005 15:00:28 +1300 From: Jonathan Roewen To: skaller Subject: Re: [Caml-list] composing functions... Cc: caml-list@yquem.inria.fr In-Reply-To: <1133400888.20197.40.camel@rosella> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1133400888.20197.40.camel@rosella> X-Miltered: at nez-perce with ID 438E593D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 functions:01 passing:01 argument:01 objects:02 arg:03 arg:03 let:03 applied:04 arguments:07 okay:07 correct:08 function:08 object:09 gmail:09 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 Okay, how about something different. How could I do some sort of composing where I pass objects and arguments to be applied. Something like let f arg1 arg2 =3D obj1 arg1 --> obj2 arg2, where the function/operator would call the correct method on the object, passing the argument to it. Jonathan