PsiLAB Help Manual Page

Section: Basic Matrix functions

Name: array_of_list

Convert a list to a native caml array.

[ arr:'a array ] = array_of_list (listarg:'a)

Example:
[] let l = [1;2;3;4] ;; 
val l : int list = [1; 2; 3; 4] 
[] let a = array_of_list l ;; 
val a : int array = [|1; 2; 3; 4|] 

Printed by PsiLAB