How to remove specific entries from a map in Dart

1 Answer

0 votes
void main() {
    var map = {'dart': 13, 'c': 89, 'c++': 10, 'python': 40, 'java': 50};

    map.remove('c++');
    map.remove('python');
    
    print(map);
}
   

   
   
/*
run:
   
{dart: 13, c: 89, java: 50}
   
*/

 



answered Oct 11, 2022 by avibootz

Related questions

1 answer 150 views
2 answers 156 views
156 views asked Oct 11, 2022 by avibootz
1 answer 172 views
2 answers 165 views
1 answer 160 views
1 answer 145 views
1 answer 184 views
...