Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Iterating through a map

for (auto const& [key, value] : your_map) {
  std::cout << key    << ':'    << value    << std::endl;
}
Source by cs128.org #
 
PREVIOUS NEXT
Tagged: #Iterating #map
ADD COMMENT
Topic
Name
7+4 =