RosettaCodeData/Task/Arrays/Boo/arrays.boo

9 lines
211 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
myArray as (int) = (1, 2, 3) // Size based on initialization
fixedArray as (int) = array(int, 1) // Given size(1 in this case)
myArray[0] = 10
myArray = myArray + fixedArray // Append arrays
print myArray[0]