Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] composing functions...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] composing functions...
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 = obj1 arg1 --> obj2 arg2, where the
function/operator would call the correct method on the object, passing
the argument to it.

Jonathan