Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] use of `generics'
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Siegfried Gonzi <siegfried.gonzi@s...>
Subject: [Caml-list] List to Tuple

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