caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Thomasset <francois.thomasset@inria.fr>
To: Francois Thomasset <francois.thomasset@inria.fr>
Cc: Quetzalcoatl Bradley <qbradley@blackfen.com>,
	caml-list@inria.fr, thomasse@whisky.inria.fr,
	thomasse@whisky.inria.fr
Subject: Re: [Caml-list] function polymorphic in number of arguments?
Date: Mon, 16 Sep 2002 14:24:23 +0200	[thread overview]
Message-ID: <200209161224.g8GCONc31180@pelops.inria.fr> (raw)
In-Reply-To: Message from Francois Thomasset <francois.thomasset@inria.fr>  of "Mon, 16 Sep 2002 14:19:06 +0200." <200209161219.g8GCJ6c31138@pelops.inria.fr>

> > 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


  reply	other threads:[~2002-09-16 12:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-15 20:15 [Caml-list] mutually referencing compilation units Henri Dubois-Ferriere
2002-09-16  3:44 ` [Caml-list] function polymorphic in number of arguments? Quetzalcoatl Bradley
2002-09-16 12:19   ` Francois Thomasset
2002-09-16 12:24     ` Francois Thomasset [this message]
2002-09-17 12:32 ` [Caml-list] mutually referencing compilation units Xavier Leroy
2002-09-19  3:09   ` John Max Skaller
2002-09-19  5:09     ` [Caml-list] ocamlmktop linking on Darwin Lex Stein
     [not found] <20020917084045.46976.qmail@web11206.mail.yahoo.com>
2002-09-17 15:23 ` [Caml-list] function polymorphic in number of arguments? Quetzalcoatl Bradley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209161224.g8GCONc31180@pelops.inria.fr \
    --to=francois.thomasset@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=qbradley@blackfen.com \
    --cc=thomasse@whisky.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).