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 155 views
2 answers 171 views
171 views asked Oct 11, 2022 by avibootz
1 answer 179 views
2 answers 177 views
1 answer 168 views
1 answer 149 views
1 answer 197 views
...