Vector class in Global context

Vector is 1-dimensional array, indexed by integer value (starting from 0). Multidimensional arrays can be simulated by putting other Vector objects into the Vector.
Example:
var v=Vector.new();
v.add(123); v.add("string");

11 members:

float avg
float

average

integer size
integer

element count

float stdev
float

standard deviation

=sqrt(sum((element[i]-avg)^2)/(size-1)) which is estimated population std.dev. from sample std.dev.

string toString
string

textual form

function add
doesn't return a value

append at the end

function add(untyped value)
function clear
doesn't return a value

clear data

function clear()
function find
returns integer

find

function find(untyped value)

returns the element index or -1 if not found

function get
returns untyped

get value at position

function get(integer position)
function new
returns Vector

create new Vector

function new()
function remove
doesn't return a value

remove at position

function remove(integer position)
function set
doesn't return a value

set value at position

function set(integer position, untyped value)

Global context