From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA06110; Wed, 3 Jul 2002 11:10:27 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA05843 for ; Wed, 3 Jul 2002 11:10:26 +0200 (MET DST) Received: from madiran.inria.fr (madiran.inria.fr [128.93.8.77]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g639AN916666; Wed, 3 Jul 2002 11:10:24 +0200 (MET DST) Received: from localhost (madiran.inria.fr [128.93.8.77]) by madiran.inria.fr (Postfix) with ESMTP id AFF13A78B1; Wed, 3 Jul 2002 11:10:23 +0200 (CEST) Date: Wed, 03 Jul 2002 11:10:23 +0200 (CEST) Message-Id: <20020703.111023.596538515.Jun.Furuse@inria.fr> To: oleg_inconnu@myrealbox.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] generic programming From: "Jun P.FURUSE" In-Reply-To: <200207030246.WAA28665@dewberry.cc.columbia.edu> References: <200207030246.WAA28665@dewberry.cc.columbia.edu> X-URL: http://pauillac.inria.fr/~furuse/ X-Face: %NBEt80q,?D$3WNc|UEDB(`B%4yRMn~m!-wQF`!QA@=cZ~?MZJwomF~)69N/W6e/n1),d X-Mailer: Mew version 2.2 on XEmacs 21.4.6 (Common Lisp) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, > Is generic programming possible with O'Caml? Suppose I want to find the > Pearson correlation between two sets of real numbers represented as sets, > arrays, big_arrays, maps, stacks, queues or lists. Is it possible to have one > piece of code that handles all of these containers, a generic function of > some sort? (Iteration is all that is necessary in the Pearson correlation > example) You may be interested in an experimental implementation of generic values on O'Caml, found at http://pauillac.inria.fr/~furuse/generics/ Regards, -- Jun ------------------- 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