tptrmap_operator_iget.bmx 288 B

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