deckarep / golang-set

A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.
Other
4.15k stars 274 forks source link

Add Len() to get the number of all Set members #69

Closed agateriver closed 4 years ago

deckarep commented 4 years ago

How is this different than .Cardinality() which is the formal name to get the number of elements in the set?

agateriver commented 4 years ago

Sorry for ignoring func .Cardinality() . Please remove this pull request!