1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
new M: vmap<str, int>() M->insert( "one--", 1 ) M->insert( "two--", 2 ) M->insert( "three", 3 ) M->insert( "four-", 4 ) M->insert( "five-", 5 ) M->remove( "three" ) for V: int in M { print "[V] } Two: int = M->find( "two--" ) print "[Two] ##### EXP ##### 5 4 1 2 2