Skip to content
trishume edited this page Nov 16, 2011 · 3 revisions

Hashmaps are currently only available as string key, integer value maps through the IntHashMap class.

See the wikipedia article on hash tables: http://en.wikipedia.org/wiki/Hash_table

The interface:

module pervasive IntHashMap
    export all
    
    fcn New () : int
    proc Free (id : int)
    
    proc Put (id : int,key:string,val:int)
    fcn Get (id : int,key:string,var res : int) : int
    proc Remove (id : int,key:string)
end HashMap

Clone this wiki locally