CopyArray

Family: Array · One form

What it does

CopyArray writes a value: it copies rather than reads. It takes source (a void) and destination (a void), and answers an integer.

Syntax

CopyArray(source void, destination void) → integer

Parameters

NameType
sourcevoid
destinationvoid

Every form returns

integer

Example · generated

array = CopyArray(0, 0)DO  Sync()LOOP

CopyArray is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

3 commands in Array