swift-collections icon indicating copy to clipboard operation
swift-collections copied to clipboard

Please Add Support for Multiset

Open singhalrishi27 opened this issue 1 month ago • 1 comments

Creating a data structure like a multiset for Swift would indeed be a valuable addition to the standard library. While Swift's Set does not allow duplicates, and arrays can be sorted but don't offer efficient insertion and removal for maintaining sorted order, a multiset could provide efficient operations for both insertion and removal while allowing duplicate elements.

singhalrishi27 avatar May 08 '24 20:05 singhalrishi27