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 TAA21311; Mon, 10 Feb 2003 19:43:04 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA21433 for ; Mon, 10 Feb 2003 19:43:03 +0100 (MET) Received: from epexch01.qlogic.org ([63.170.40.3]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1AIh1P08523 for ; Mon, 10 Feb 2003 19:43:01 +0100 (MET) Received: from epmailtmp.qlogic.org ([10.20.33.254]) by epexch01.qlogic.org with Microsoft SMTPSVC(5.0.2195.5329); Mon, 10 Feb 2003 12:42:08 -0600 Received: from [10.20.33.146] ([10.20.33.146]) by epmailtmp.qlogic.org with Microsoft SMTPSVC(5.0.2195.4905); Mon, 10 Feb 2003 12:42:08 -0600 Date: Mon, 10 Feb 2003 12:52:35 -0600 (CST) From: Brian Hurt X-X-Sender: Reply-To: Brian Hurt To: Ocaml Mailing List Subject: [Caml-list] Request: matrix_init function in Array Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 10 Feb 2003 18:42:08.0540 (UTC) FILETIME=[1DA125C0:01C2D134] Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Any possibility we could add the following function to the Array module? val matrix_init : int -> int -> (int -> int -> 'a) -> 'a array array let matrix_init rows cols f = let g i = init cols (f i) in init rows g ;; Actually, I'm not sure if the function should be matrix_init or init_matrix. And I don't care either way. Brian ------------------- 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