A Vector is a storage of fixed size. It can be faster than Array on some targets, and is never slower.

See also:

Constructor

inlinenew(length:Int)

Creates a new Vector of length length.

Initially this Vector contains length neutral elements:

  • always null on dynamic targets
  • 0, 0.0 or false for Int, Float and Bool respectively on static targets
  • null for other types on static targets

If length is less than or equal to 0, the result is unspecified.