Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] mutually referencing compilation units
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Francois Thomasset <francois.thomasset@i...>
Subject: Re: [Caml-list] function polymorphic in number of arguments?
> > Is it possible to make a function of N arguments (3 or more), the first 
> > two are functions of N-2 arguments, and the function calls the first 
> > two functions passing its remaining arguments to each of the first two 
> > functions.
> What about this one :
> let f a b =
>   let g x = a x; b x
>   in g;;
> 
> François Thomasset
> 
Sorry I am wrong : my proposal accepts f f1 f2 "abc",
but fails on f g1 g2 "abc" "def"
FT


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners