Copy part of one Array in Pas2JS |
Top |
Note that we have copied the middle 4 elements of the Source array to a Target array. Source array: Target[0] : 1 Target[1] : 2 Target[2] : 3 Target[3] : 4 Target[4] : 5 Target[5] : 6 Target[6] : 7 Target[7] : 8
----------------- Copy(Source, 3, 4); Target array: Target[0] : 4 Target[1] : 5 Target[2] : 6 Target[3] : 7
---------------------------------
JS output:
|