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 KAA09615; Sat, 24 May 2003 10:27:57 +0200 (MET DST) 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 KAA09610 for ; Sat, 24 May 2003 10:27:55 +0200 (MET DST) Received: from teutates.kfunigraz.ac.at (TEUTATES.kfunigraz.ac.at [143.50.129.26]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h4O8RtT18955 for ; Sat, 24 May 2003 10:27:55 +0200 (MET DST) Received: from localhost (localhost.localdomain [127.0.0.1]) by teutates.kfunigraz.ac.at (Postfix) with ESMTP id 4C4343D2221 for ; Sat, 24 May 2003 10:27:54 +0200 (CEST) Received: from teutates.kfunigraz.ac.at ([127.0.0.1]) by localhost (teutates.kfunigraz.ac.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26013-02 for ; Sat, 24 May 2003 10:27:53 +0200 (CEST) Received: from stud.uni-graz.at (IGAM08AV.kfunigraz.ac.at [143.50.39.35]) by teutates.kfunigraz.ac.at (Postfix) with ESMTP id 5212B3D2165 for ; Sat, 24 May 2003 10:27:53 +0200 (CEST) Message-ID: <3ECF1C25.40708@stud.uni-graz.at> Date: Sat, 24 May 2003 09:15:49 +0200 From: Siegfried Gonzi Organization: Universitaet Graz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] List to Tuple References: <20030523213847.GA12787@force.stwing.upenn.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at stud.uni-graz.at X-Spam: no; 0.00; siegfried:01 gonzi:01 stud:99 psilab:01 initializing:01 const:01 bigarrays:01 arrays:01 bigarray:01 ocaml:01 concrete:02 converts:03 let:04 array:04 construct:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I couldn't find the function which converts a List to a Tuple type. PsiLAb for example expects for initializing of arrays a Tuple construct: let a = imatrix ~const:[1,2,3 ; 4,5,6] ();; which would yield: 1 2 3 4 5 6 But I think the common case actually is that one has something like this: [[1;2;3];[4;5;6]]. How to convert this to: [1,2,3 ; 4,5,6] ? Another question. PsiLAB relies in Bigarrays. How is it possible to convert a OCaml array to bigarray? The OCaml book has a chapter about bigarrays but no concrete examples how to do this. S. Gonzi ------------------- 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