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

Method Front

orderedmap.go:99–101  ·  view source on GitHub ↗

Front will return the element that is the first (oldest Set element). If there are no elements this will return nil.

()

Source from the content-addressed store, hash-verified

97// Front will return the element that is the first (oldest Set element). If
98// there are no elements this will return nil.
99func (m *OrderedMap) Front() *Element {
100 return m.ll.Front()
101}
102
103// Back will return the element that is the last (most recent Set element). If
104// there are no elements this will return nil.

Callers 8

KeysMethod · 0.95
CopyMethod · 0.95
TestOrderedMap_FrontFunction · 0.95
ExampleOrderedMap_FrontFunction · 0.95
TestOrderedMap_FrontFunction · 0.95
TestIterationsFunction · 0.95
TestOrderedMap_FrontFunction · 0.95
TestIterationsFunction · 0.95

Calls

no outgoing calls

Tested by 6

TestOrderedMap_FrontFunction · 0.76
ExampleOrderedMap_FrontFunction · 0.76
TestOrderedMap_FrontFunction · 0.76
TestIterationsFunction · 0.76
TestOrderedMap_FrontFunction · 0.76
TestIterationsFunction · 0.76