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.
Example: var d=Dictionary.new(); d.set("name","John"); d.set("age",44);
var i,element; for(i=0;i<d.size;i++) element=d.get(i);

8 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 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