Tintware Documentation : Tint Programming Language : Tint Reference : Arrays : Array insertSyntax#(%array.insert,%index) %array is an array. %index is the index to be inserted. insert will move all objects from %index (inclusive) down one in the array creating an empty slot. Example#(array,an-array,a,b,c,d,e,f,g) #(tint.list, ,an-array.) 7 6 5 4 3 2 1 #(an-array.insert,1) #(tint.list, ,an-array.) 8 7 6 5 4 3 2 #(an-array.insert,5) #(tint.list, ,an-array.) 9 8 7 6 4 3 2 |