### 5.10 Copy

• Copy( <list>, <start index>, <number> ).
• Description: that function returns the <number> elements in the <liste> from the element number <start> [included]. If <number> is zero, then the function returns all the elements in the list from the element number <start>.

If the <start> number is negative, then the list is browsed from the right to the left starting from the last element. The last element index is $-1$, the penultimate’s is $-2$ $\cdots \phantom{\rule{0.3em}{0ex}}$ etc. The function returns the <number> elements of the list (or the whole list if <number> is zero) browsed to the left, but the list is returned in the same direction than the given <list>, and the last is not modified.

• Exemple(s)
• Copy([1,2,3,4],2,2) returns [2,3].
• Copy([1,2,3,4],2,5) returns [2,3,4].
• Copy([1,2,3,4],2,0) returns [2,3,4].
• Copy([1,2,3,4],-1,2) returns [3,4].
• Copy([1,2,3,4],-2,2) returns [2,3].
• Copy([1,2,3,4],-2,0) returns [1,2,3].

NB: for compatibility reasons with the old release, the index $0$ is also corresponding to the last element of the list.