MCPcopy
hub / github.com/git-lfs/git-lfs / Cardinality

Method Cardinality

tools/stringset.go:133–135  ·  view source on GitHub ↗

Cardinality returns how many items are currently in the set.

()

Source from the content-addressed store, hash-verified

131
132// Cardinality returns how many items are currently in the set.
133func (set StringSet) Cardinality() int {
134 return len(set)
135}
136
137// Iter() returns a channel of type string that you can range over.
138func (set StringSet) Iter() <-chan string {

Callers 5

IntersectMethod · 0.95
EqualMethod · 0.95
TestOrderedSetClearFunction · 0.45
migrateImportCommandFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestOrderedSetClearFunction · 0.36