Home /Modules/collections/SLMap.md

SLMap.md

lib/collections/SLMap.md · 27 line(s) · markdown

SLMap

SLMap is a concrete, String-keyed, String-valued map in the SLeeLa collections library, backed by two parallel VM-managed growable native arrays (keys[i] maps to vals[i]). Keys are unique; lookup is a linear scan, which suits small-to-moderate maps. It requires no Generics and no new VM opcodes.

Operations

This first version uses String keys and values only.

Example

See SLMapBasic.