Home > Software engineering >  Dart equivalent of Apache Commons Collections Bag
Dart equivalent of Apache Commons Collections Bag

Time:05-14

Is there a collection in Dart that allows storing multiple items along with their repetition count? For instance, such a collection is in Apache Commons Collections (Java) and is called Bag. Thank you

CodePudding user response:

The more package contains a Multiset class that does exactly that. The Bag.getCount method from Apache Common Collections corresponds to Multiset.operator[].

  •  Tags:  
  • dart
  • Related