sdleiF | ||
untyped avg RO | Average | |
object iterator RO | Iterator | |
int size RO | Element count | |
untyped stdev RO | Standard deviation=sqrt(sum((element[i]-avg)^2)/(size-1)) which is estimated population std.dev. from sample std.dev. | |
string toString RO | Textual form | |
snoitcnuF | ||
function add(untyped value)doesn't return a value | Append at the end | |
function clear()doesn't return a value | Clear data | |
function clone RO()returns Vector | Create a cloneThe resulting clone is a shallow copy (contains the same object references as the original). A deep copy can be obtained through serialization: String.deserialize(String.serialize(object)); | |
function find RO(untyped value)returns int | Findreturns the element index or -1 if not found | |
function get RO(int position)returns untyped | Get value at positionobject[position] can be always used instead of object.get(position) | |
function insert(int position, untyped value)doesn't return a value | Insert value at position | |
function new()returns Vector | Create new Vector | |
function remove(int position)doesn't return a value | Remove at position | |
function set(int position, untyped value)doesn't return a value | Set value at positionobject[position]=value can be always used instead of object.set(position,value) | |
function sort(FunctionReference comparator)doesn't return a value | Sort elements (in place)comparator can be null, giving the "natural" sorting order (depending on element type), otherwise it must be a function reference obtained from the 'function' operator. Example: function compareLastDigit(a,b) {return (a%10)<(b%10);} var v=[16,23,35,42,54,61]; v.sort(function compareLastDigit); |
Global context |