STAY IN TOUCH

and receive our newsletter to get the latest news and tips.


Number Map

A map of numbers to numbers
function (Number Map) → at(index : Number) returns Number
Gets the element at index. Index may be any floating-point value.
function (Number Map) → avg returns Number
Computes the average of the values
function (Number Map) → clear
Clears the number map.
function (Number Map) → count returns Number
Gets the number of elements
function (Number Map) → from json(jobj : Json Object)
Imports a JSON representation of the contents.
function (Number Map) → is invalid returns Boolean
Returns true if the current instance is useless
function (Number Map) → max returns Number
Computes the maximum of the values
function (Number Map) → min returns Number
Computes the minimum of the values
function (Number Map) → post to wall
Displays the map in a line chart; you need to call 'update on wall' later if you want changes to be reflected.
function (Number Map) → remove(index : Number)
Removes the value at a given index
function (Number Map) → set at(index : Number, value : Number)
Sets the element at index. Index may be any floating-point value.
function (Number Map) → set many(numbers : Number Map)
Sets many elements at once.
function (Number Map) → slice(start : Number, end : Number) returns Number Map
Extracts the elements at indices between start (inclusive) and end (non-inclusive).
function (Number Map) → sum returns Number
Computes the sum of the values
function (Number Map) → to json returns Json Object
Exports a JSON representation of the contents.
function (Number Map) → update on wall
Updates any display of this map

edit this topic twhbvhtklf