Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 Archives:
Bug reports: FAQ:
Beginner's list: