case class BagSortedMap[A](smap: SortedMap[A, Int])(implicit evidence$1: Ordering[A]) extends Bag[A]
- Companion:
- object
Value members
Concrete methods
Deletes an element and returns the new bag It doesn't complain if the element doesn't exist
Deletes an element and returns the new bag It doesn't complain if the element doesn't exist
Inserts an element in a bag and returns the new bag
Inserts an element in a bag and returns the new bag
Inherited methods
Size returns the total number of elements. Notice that if an element appears 4 times, it adds 4 to the counter
Size returns the total number of elements. Notice that if an element appears 4 times, it adds 4 to the counter
- Inherited from:
- Bag