Dictionary class in Global context

Dictionary associates stored values with string keys ("key" is the first argument in get/set/remove functions). Integer "key" can be used to enumerate all elements (the sequence of elements is not preserved).
Example:
var d=Dictionary.new(); d.set("name","John"); d.set("age",44);
var i;
for(i=0;i<d.size;i++) Simulator.print(d.getKey(i)+" is "+d.get(i));

9 members:

integer size
integer

element count

string toString
string

textual form

function clear
doesn't return a value

clear data

function clear()
function find
returns string

find

function find(untyped value)

returns the element key or null if not found

function get
returns untyped

get named or indexed element

function get(untyped key)
function getKey
returns string

get a key of the indexed element

function getKey(integer index)
function new
returns Dictionary

create new Dictionary

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

remove named or indexed element

function remove(untyped key)
function set
doesn't return a value

set named or indexed element

function set(untyped key, untyped value)

Global context