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 MAA11842; Sat, 24 May 2003 12:42:13 +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 MAA12033 for ; Sat, 24 May 2003 12:42:12 +0200 (MET DST) Received: from ep09.kernel.pl (ep09.kernel.pl [212.87.11.162]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h4OAgBT22318 for ; Sat, 24 May 2003 12:42:11 +0200 (MET DST) Received: (qmail 21551 invoked by uid 566); 24 May 2003 10:42:04 -0000 Date: Sat, 24 May 2003 12:41:21 +0200 From: Michal Moskal To: Siegfried Gonzi Cc: caml-list@inria.fr Subject: Re: [Caml-list] List to Tuple Message-ID: <20030524104121.GA4709@roke.freak> References: <20030523213847.GA12787@force.stwing.upenn.edu> <3ECF1C25.40708@stud.uni-graz.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ECF1C25.40708@stud.uni-graz.at> User-Agent: Mutt/1.4.1i X-PGP-Fingerprint: CF89 1B14 11BE 1CC9 2CA3 7497 5E32 69B4 BC71 B4C2 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Spam: no; 0.00; michal:01 moskal:01 malekith:01 pld-linux:01 caml-list:01 siegfried:01 gonzi:01 powerfull:01 val:01 generics:01 wroclaw:01 kernel:01 0200,:01 gcs:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, May 24, 2003 at 09:15:49AM +0200, Siegfried Gonzi wrote: > I couldn't find the function which converts a List to a Tuple type. ML type system isn't powerfull enough to express this construct, best you can have is: val conv2 : 'a * 'a -> 'a list val conv3 : 'a * 'a * 'a -> 'a list ... I'm not quite sure if it will change with generics. -- : Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv : PLD Linux ::::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h ------------------- 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