MCPcopy Create free account
hub / github.com/elliotchance/orderedmap / Len

Method Len

orderedmap.go:70–72  ·  view source on GitHub ↗

Len returns the number of elements in the map.

()

Source from the content-addressed store, hash-verified

68
69// Len returns the number of elements in the map.
70func (m *OrderedMap) Len() int {
71 return len(m.kv)
72}
73
74// Keys returns all of the keys in the order they were inserted. If a key was
75// replaced it will retain the same position. To ensure most recently set keys

Callers 13

KeysMethod · 0.95
CopyMethod · 0.95
TestLenFunction · 0.95
TestOrderedMap_CopyFunction · 0.95
benchmarkOrderedMap_LenFunction · 0.95
TestReplaceKeyFunction · 0.95
TestLenFunction · 0.95
TestOrderedMap_CopyFunction · 0.95
benchmarkOrderedMap_LenFunction · 0.95
TestReplaceKeyFunction · 0.95
TestLenFunction · 0.95
TestOrderedMap_CopyFunction · 0.95

Calls

no outgoing calls

Tested by 11

TestLenFunction · 0.76
TestOrderedMap_CopyFunction · 0.76
benchmarkOrderedMap_LenFunction · 0.76
TestReplaceKeyFunction · 0.76
TestLenFunction · 0.76
TestOrderedMap_CopyFunction · 0.76
benchmarkOrderedMap_LenFunction · 0.76
TestReplaceKeyFunction · 0.76
TestLenFunction · 0.76
TestOrderedMap_CopyFunction · 0.76
benchmarkOrderedMap_LenFunction · 0.76