tptrmap_operator_iset.bmx 286 B

12345678910111213
  1. SuperStrict
  2. Framework brl.standardio
  3. Import brl.map
  4. Local map:TPtrMap = New TPtrMap
  5. map[Byte Ptr(1)] = "Hello" ' insert value using index operator
  6. map[Byte Ptr(2)] = "World"
  7. For Local k:TPtrKey = EachIn map.Keys()
  8. Print Int(k.value) + " = " + String(map.ValueForKey(k.value))
  9. Next