caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Franck Delaplace <delapla@lami.univ-evry.fr>
To: caml-list@pauillac.inria.fr
Subject: module aggregation
Date: Thu, 13 Jun 1996 09:09:58 +0200	[thread overview]
Message-ID: <31BFBEC6.167EB0E7@lami.univ-evry.fr> (raw)


I want to aggregate two modules in one in order
to improve some standard modules or some module
define by functors . How can I do this in Ocaml ? 

for instance I want to have a function 
which gives a list of cartesian product of l1 l2 

let cartesian_map  f l1 l2 = List.flatten (List.map (fun(a)-> List.map (f a) l2) l1);;

val cartesian_map : ('a -> 'b -> 'c) -> 'a list -> 'b list -> 'c list = <fun>

and I would like to call it  List.cartesian_map 


I have also the same problem for module defined by Functor
I want to add some specific functions once the module is defined.

Thank you 

--- 

Franck Delaplace.	Tel: +33 (1) 6947 7463	email : delapla@lami.univ-evry.fr 

LAboratoire de Mathematiques et d'Informatique (LAMI)
Equipe Parallelisme  (http://perdiguier.univ-evry.fr:8004/parall/)
 
Universite d'Evry Val d'Essonne                                                 
Cours Monseigneur Romero
91025 EVRY CEDEX (FRANCE)





             reply	other threads:[~1996-06-13  9:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-13  7:09 Franck Delaplace [this message]
1996-06-14 10:25 ` Wolfgang Lux
1996-06-14 22:00   ` Bernd Grobauer

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=31BFBEC6.167EB0E7@lami.univ-evry.fr \
    --to=delapla@lami.univ-evry.fr \
    --cc=caml-list@pauillac.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).