list_to_array
list_to_array — converts a list to an array.
list_to_array (list)
listA list to convert to an array.
The list converted to an array.
This convenience function converts the top level of a list to an array. Sub-lists will remain unchanged unless converted separately.
Gamma>a = list(1,2,3);(1 2 3)Gamma>b = list(4,5,6);(4 5 6)Gamma>c = list(7,8,9);(7 8 9)Gamma>d = list(a,b,c);((1 2 3) (4 5 6) (7 8 9))Gamma>e = list_to_array(d);[(1 2 3) (4 5 6) (7 8 9)]Gamma>array_p(e);tGamma>array_p(a);nilGamma>