MCPcopy
hub / github.com/cornelk/hashmap / Len

Method Len

list.go:21–23  ·  view source on GitHub ↗

Len returns the number of elements within the list.

()

Source from the content-addressed store, hash-verified

19
20// Len returns the number of elements within the list.
21func (l *List[Key, Value]) Len() int {
22 return int(l.count.Load())
23}
24
25// First returns the first item of the list.
26func (l *List[Key, Value]) First() *ListElement[Key, Value] {

Callers 11

TestNewFunction · 0.45
TestSetStringFunction · 0.45
TestSetUint8Function · 0.45
TestSetInt16Function · 0.45
TestSetFloat32Function · 0.45
TestSetFloat64Function · 0.45
TestSetInt64Function · 0.45
TestInsertFunction · 0.45
TestResizeFunction · 0.45
TestDeleteFunction · 0.45

Calls

no outgoing calls

Tested by 11

TestNewFunction · 0.36
TestSetStringFunction · 0.36
TestSetUint8Function · 0.36
TestSetInt16Function · 0.36
TestSetFloat32Function · 0.36
TestSetFloat64Function · 0.36
TestSetInt64Function · 0.36
TestInsertFunction · 0.36
TestResizeFunction · 0.36
TestDeleteFunction · 0.36