Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

can we update values of a map via traversing

Well, you can't do it by iterating over the set of values in the Map 
(as you are doing now), because if you do that then you have no reference to t
he keys, and if you have no reference to the keys, then you can't update the 
entries in the map, because you have no way of finding out which key was 
associated with
 
PREVIOUS NEXT
Tagged: #update #values #map #traversing
ADD COMMENT
Topic
Name
3+2 =