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

Method First

list.go:26–28  ·  view source on GitHub ↗

First returns the first item of the list.

()

Source from the content-addressed store, hash-verified

24
25// First returns the first item of the list.
26func (l *List[Key, Value]) First() *ListElement[Key, Value] {
27 return l.head.Next()
28}
29
30// Add adds an item to the list and returns false if an item for the hash existed.
31// searchStart = nil will start to search at the head item.

Callers 4

TestListNewFunction · 0.80
StringMethod · 0.80
RangeMethod · 0.80
fillIndexItemsMethod · 0.80

Calls 1

NextMethod · 0.80

Tested by 1

TestListNewFunction · 0.64