MCPcopy Create free account

hub / github.com/elliotchance/orderedmap / functions

Functions377 in github.com/elliotchance/orderedmap

FunctionBenchmarkOrderedMap_Set
(b *testing.B)
v2/orderedmap_test.go:396
FunctionBenchmarkOrderedMap_Set
(b *testing.B)
v3/orderedmap_test.go:426
MethodCopy
Copy returns a new OrderedMap with the same elements. Using Copy while there are concurrent writes may mangle the result.
v2/orderedmap.go:134
MethodCopy
Copy returns a new OrderedMap with the same elements. Using Copy while there are concurrent writes may mangle the result.
v3/orderedmap.go:175
MethodDelete
Delete will remove a key from the map. It will return true if the key was removed (the key did exist).
v2/orderedmap.go:110
MethodDelete
Delete will remove a key from the map. It will return true if the key was removed (the key did exist).
v3/orderedmap.go:151
FunctionExampleNewOrderedMap
()
orderedmap_test.go:795
FunctionExampleOrderedMap_Front
()
orderedmap_test.go:810
MethodFront
Front returns the first element of list l or nil if the list is empty.
list.go:40
MethodFront
Front returns the first element of list l or nil if the list is empty.
v3/list.go:40
MethodGet
Get returns the value for a key. If the key does not exist, the second return parameter will be false and the value will be nil.
v2/orderedmap.go:32
MethodGet
Get returns the value for a key. If the key does not exist, the second return parameter will be false and the value will be nil.
v3/orderedmap.go:34
MethodGetElement
GetElement returns the element for a key. If the key does not exist, the pointer will be nil.
v2/orderedmap.go:83
MethodGetElement
GetElement returns the element for a key. If the key does not exist, the pointer will be nil.
v3/orderedmap.go:85
MethodGetOrDefault
GetOrDefault returns the value for a key. If the key does not exist, returns the default value instead.
orderedmap.go:50
MethodGetOrDefault
GetOrDefault returns the value for a key. If the key does not exist, returns the default value instead.
v2/orderedmap.go:73
MethodGetOrDefault
GetOrDefault returns the value for a key. If the key does not exist, returns the default value instead.
v3/orderedmap.go:75
MethodHas
Has checks if a key exists in the map.
v2/orderedmap.go:143
MethodHas
Has checks if a key exists in the map.
v3/orderedmap.go:184
MethodIsEmpty
()
list.go:35
MethodIsEmpty
()
v2/list.go:35
MethodIsEmpty
()
v3/list.go:35
MethodKeys
Keys returns all of the keys in the order they were inserted. If a key was replaced it will retain the same position. To ensure most recently set keys
v2/orderedmap.go:100
MethodKeys
Keys returns an iterator that yields all the keys in the map starting at the front (oldest Set element). To create a slice containing all the map keys
v3/orderedmap.go:126
FunctionNewOrderedMap
()
v2/orderedmap.go:8
FunctionNewOrderedMap
()
v3/orderedmap.go:10
FunctionNewOrderedMapWithCapacity
NewOrderedMapWithCapacity creates a map with enough pre-allocated space to hold the specified number of elements.
v2/orderedmap.go:16
FunctionNewOrderedMapWithCapacity
NewOrderedMapWithCapacity creates a map with enough pre-allocated space to hold the specified number of elements.
v3/orderedmap.go:18
FunctionNewOrderedMapWithElements
(els ...*Element[K, V])
v2/orderedmap.go:22
FunctionNewOrderedMapWithElements
(els ...*Element[K, V])
v3/orderedmap.go:24
MethodNext
Next returns the next list element or nil.
list.go:20
MethodPrev
Prev returns the previous list element or nil.
list.go:25
MethodPushFront
PushFront inserts a new element e with value v at the front of list l and returns e.
list.go:66
MethodPushFront
PushFront inserts a new element e with value v at the front of list l and returns e.
v2/list.go:66
MethodPushFront
PushFront inserts a new element e with value v at the front of list l and returns e.
v3/list.go:66
FunctionTestDelete
(t *testing.T)
orderedmap_test.go:233
FunctionTestDelete
(t *testing.T)
v2/orderedmap_test.go:225
FunctionTestDelete
(t *testing.T)
v3/orderedmap_test.go:225
FunctionTestGet
(t *testing.T)
orderedmap_test.go:17
FunctionTestGet
(t *testing.T)
v2/orderedmap_test.go:17
FunctionTestGet
(t *testing.T)
v3/orderedmap_test.go:18
FunctionTestGetElement
(t *testing.T)
orderedmap_test.go:321
FunctionTestGetElement
(t *testing.T)
v2/orderedmap_test.go:295
FunctionTestGetElement
(t *testing.T)
v3/orderedmap_test.go:295
FunctionTestIterations
(t *testing.T)
v2/orderedmap_test.go:332
FunctionTestIterations
(t *testing.T)
v3/orderedmap_test.go:332
FunctionTestIterators
(t *testing.T)
v2/iterator_test.go:13
FunctionTestIterators
(t *testing.T)
v3/orderedmap_test.go:354
FunctionTestKeys
(t *testing.T)
orderedmap_test.go:174
FunctionTestKeys
(t *testing.T)
v2/orderedmap_test.go:184
FunctionTestKeys
(t *testing.T)
v3/orderedmap_test.go:184
FunctionTestLen
(t *testing.T)
orderedmap_test.go:136
FunctionTestLen
(t *testing.T)
v2/orderedmap_test.go:163
FunctionTestLen
(t *testing.T)
v3/orderedmap_test.go:163
FunctionTestNewOrderedMap
(t *testing.T)
orderedmap_test.go:12
FunctionTestNewOrderedMap
(t *testing.T)
v2/orderedmap_test.go:12
FunctionTestNewOrderedMap
(t *testing.T)
v3/orderedmap_test.go:13
FunctionTestOrderedMap_Back
(t *testing.T)
orderedmap_test.go:294
FunctionTestOrderedMap_Back
(t *testing.T)
v2/orderedmap_test.go:268
FunctionTestOrderedMap_Back
(t *testing.T)
v3/orderedmap_test.go:268
FunctionTestOrderedMap_Copy
(t *testing.T)
orderedmap_test.go:307
FunctionTestOrderedMap_Copy
(t *testing.T)
v2/orderedmap_test.go:281
FunctionTestOrderedMap_Copy
(t *testing.T)
v3/orderedmap_test.go:281
FunctionTestOrderedMap_Front
(t *testing.T)
orderedmap_test.go:281
FunctionTestOrderedMap_Front
(t *testing.T)
v2/orderedmap_test.go:255
FunctionTestOrderedMap_Front
(t *testing.T)
v3/orderedmap_test.go:255
FunctionTestOrderedMap_Has
(t *testing.T)
orderedmap_test.go:360
FunctionTestOrderedMap_Has
(t *testing.T)
v2/orderedmap_test.go:354
FunctionTestOrderedMap_Has
(t *testing.T)
v3/orderedmap_test.go:384
FunctionTestReplaceKey
(t *testing.T)
v2/orderedmap_test.go:101
FunctionTestReplaceKey
(t *testing.T)
v3/orderedmap_test.go:102
FunctionTestSet
(t *testing.T)
orderedmap_test.go:83
FunctionTestSet
(t *testing.T)
v2/orderedmap_test.go:66
FunctionTestSet
(t *testing.T)
v3/orderedmap_test.go:67
FunctionTestSetAndGet
(t *testing.T)
v2/orderedmap_test.go:317
FunctionTestSetAndGet
(t *testing.T)
v3/orderedmap_test.go:317
MethodValues
Values returns an iterator that yields all the values in the map starting at the front (oldest Set element). To create a slice containing all the map
v3/orderedmap.go:139
← previous301–377 of 377, ranked by callers