English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

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: 2005-12-01 (02:00)
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.