Creating an Array: Difference between revisions

No edit summary
Line 863:
(1 :: 2 :: 3 :: 4 :: 5 :: Nil).toArray</lang>
 
==[[Scheme]]==
Lists are more often used in Scheme than vectors.
 
Using an array literal:
 
<lang scheme> #(1 2 3 4 5)</lang>
 
To create an array of five elements:
 
<lang scheme> (make-vector 5)</lang>
 
To create an array of five elements with the value 0:
 
<lang scheme> (make-vector 5 0)</lang>
==[[Script3D]]==
Script3D has dynamic arrays allowing to store any datatype and a special type for storing vectors of floating point values, typically used in 3D applications.
Anonymous user