Skip to content

Latest commit

 

History

History

Multiset

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

An implementation of the multiset data stucture

Usage

var b = Multiset<Character>();
for c in "hello".characters {
    b.add(c)
}
let count = b.count // count is 5
let lcount = b.count(for: "l") // lcount is 2