HashMap Object

class HashMap extends Map

Stores key-value pairs without sorting them before enumeration.

This class is exported by the KS module.

#Import "Ks" { HashMap }

Values := HashMap("red", 1, "green", 2)

Remarks

HashMap has the same scripting interface as Map. Use it when enumeration order does not need Map's compatibility sorting and insertion, removal or lookup performance is more important.

Map, Array, KS module