Skip to content

SortArray_Copy

Sancky edited this page Oct 18, 2022 · 2 revisions

Description

Copy an sorted array in another.

Syntax

SortArray_Copy(dest[], source[])

Example

new SortedArray:array<10>;

SortArray_Insert(array, 1);
SortArray_Insert(array, 5);
SortArray_Insert(array, 10);
SortArray_Insert(array, 15);

new SortedArray:copy<10>;

SortArray_Copy(copy, array);

Returns

Doesn't return anything.

Remarks

  • Both sorted arrays needs to have the same size.
Clone this wiki locally