Definition

  • A data structure with a set length
  • Items are accessed via their index, which is a number that stores their location
  • They are static (a fixed size)
  • Items are added to arrays by overwriting previous value via index

Signature

name: Array
import: element,int,bool
ops:
	newArray: → Array
	append: Array x element x int → Array
	get: Array x int -element
	isEmpty/isFull: Array → bool
	length: Array → int