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

Method Back

orderedmap.go:105–107  ·  view source on GitHub ↗

Back will return the element that is the last (most recent Set element). If there are no elements this will return nil.

()

Source from the content-addressed store, hash-verified

103// Back will return the element that is the last (most recent Set element). If
104// there are no elements this will return nil.
105func (m *OrderedMap) Back() *Element {
106 return m.ll.Back()
107}
108
109// Copy returns a new OrderedMap with the same elements.
110// Using Copy while there are concurrent writes may mangle the result.

Callers 3

TestOrderedMap_BackFunction · 0.95
TestOrderedMap_BackFunction · 0.95
TestOrderedMap_BackFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestOrderedMap_BackFunction · 0.76
TestOrderedMap_BackFunction · 0.76
TestOrderedMap_BackFunction · 0.76