Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/elliotchance/orderedmap
/ functions
Functions
377 in github.com/elliotchance/orderedmap
⨍
Functions
377
◇
Types & classes
12
Function
BenchmarkOrderedMap_Set
(b *testing.B)
v2/orderedmap_test.go:396
Function
BenchmarkOrderedMap_Set
(b *testing.B)
v3/orderedmap_test.go:426
Method
Copy
Copy returns a new OrderedMap with the same elements. Using Copy while there are concurrent writes may mangle the result.
v2/orderedmap.go:134
Method
Copy
Copy returns a new OrderedMap with the same elements. Using Copy while there are concurrent writes may mangle the result.
v3/orderedmap.go:175
Method
Delete
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
Method
Delete
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
Function
ExampleNewOrderedMap
()
orderedmap_test.go:795
Function
ExampleOrderedMap_Front
()
orderedmap_test.go:810
Method
Front
Front returns the first element of list l or nil if the list is empty.
list.go:40
Method
Front
Front returns the first element of list l or nil if the list is empty.
v3/list.go:40
Method
Get
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
Method
Get
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
Method
GetElement
GetElement returns the element for a key. If the key does not exist, the pointer will be nil.
v2/orderedmap.go:83
Method
GetElement
GetElement returns the element for a key. If the key does not exist, the pointer will be nil.
v3/orderedmap.go:85
Method
GetOrDefault
GetOrDefault returns the value for a key. If the key does not exist, returns the default value instead.
orderedmap.go:50
Method
GetOrDefault
GetOrDefault returns the value for a key. If the key does not exist, returns the default value instead.
v2/orderedmap.go:73
Method
GetOrDefault
GetOrDefault returns the value for a key. If the key does not exist, returns the default value instead.
v3/orderedmap.go:75
Method
Has
Has checks if a key exists in the map.
v2/orderedmap.go:143
Method
Has
Has checks if a key exists in the map.
v3/orderedmap.go:184
Method
IsEmpty
()
list.go:35
Method
IsEmpty
()
v2/list.go:35
Method
IsEmpty
()
v3/list.go:35
Method
Keys
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
Method
Keys
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
Function
NewOrderedMap
()
v2/orderedmap.go:8
Function
NewOrderedMap
()
v3/orderedmap.go:10
Function
NewOrderedMapWithCapacity
NewOrderedMapWithCapacity creates a map with enough pre-allocated space to hold the specified number of elements.
v2/orderedmap.go:16
Function
NewOrderedMapWithCapacity
NewOrderedMapWithCapacity creates a map with enough pre-allocated space to hold the specified number of elements.
v3/orderedmap.go:18
Function
NewOrderedMapWithElements
(els ...*Element[K, V])
v2/orderedmap.go:22
Function
NewOrderedMapWithElements
(els ...*Element[K, V])
v3/orderedmap.go:24
Method
Next
Next returns the next list element or nil.
list.go:20
Method
Prev
Prev returns the previous list element or nil.
list.go:25
Method
PushFront
PushFront inserts a new element e with value v at the front of list l and returns e.
list.go:66
Method
PushFront
PushFront inserts a new element e with value v at the front of list l and returns e.
v2/list.go:66
Method
PushFront
PushFront inserts a new element e with value v at the front of list l and returns e.
v3/list.go:66
Function
TestDelete
(t *testing.T)
orderedmap_test.go:233
Function
TestDelete
(t *testing.T)
v2/orderedmap_test.go:225
Function
TestDelete
(t *testing.T)
v3/orderedmap_test.go:225
Function
TestGet
(t *testing.T)
orderedmap_test.go:17
Function
TestGet
(t *testing.T)
v2/orderedmap_test.go:17
Function
TestGet
(t *testing.T)
v3/orderedmap_test.go:18
Function
TestGetElement
(t *testing.T)
orderedmap_test.go:321
Function
TestGetElement
(t *testing.T)
v2/orderedmap_test.go:295
Function
TestGetElement
(t *testing.T)
v3/orderedmap_test.go:295
Function
TestIterations
(t *testing.T)
v2/orderedmap_test.go:332
Function
TestIterations
(t *testing.T)
v3/orderedmap_test.go:332
Function
TestIterators
(t *testing.T)
v2/iterator_test.go:13
Function
TestIterators
(t *testing.T)
v3/orderedmap_test.go:354
Function
TestKeys
(t *testing.T)
orderedmap_test.go:174
Function
TestKeys
(t *testing.T)
v2/orderedmap_test.go:184
Function
TestKeys
(t *testing.T)
v3/orderedmap_test.go:184
Function
TestLen
(t *testing.T)
orderedmap_test.go:136
Function
TestLen
(t *testing.T)
v2/orderedmap_test.go:163
Function
TestLen
(t *testing.T)
v3/orderedmap_test.go:163
Function
TestNewOrderedMap
(t *testing.T)
orderedmap_test.go:12
Function
TestNewOrderedMap
(t *testing.T)
v2/orderedmap_test.go:12
Function
TestNewOrderedMap
(t *testing.T)
v3/orderedmap_test.go:13
Function
TestOrderedMap_Back
(t *testing.T)
orderedmap_test.go:294
Function
TestOrderedMap_Back
(t *testing.T)
v2/orderedmap_test.go:268
Function
TestOrderedMap_Back
(t *testing.T)
v3/orderedmap_test.go:268
Function
TestOrderedMap_Copy
(t *testing.T)
orderedmap_test.go:307
Function
TestOrderedMap_Copy
(t *testing.T)
v2/orderedmap_test.go:281
Function
TestOrderedMap_Copy
(t *testing.T)
v3/orderedmap_test.go:281
Function
TestOrderedMap_Front
(t *testing.T)
orderedmap_test.go:281
Function
TestOrderedMap_Front
(t *testing.T)
v2/orderedmap_test.go:255
Function
TestOrderedMap_Front
(t *testing.T)
v3/orderedmap_test.go:255
Function
TestOrderedMap_Has
(t *testing.T)
orderedmap_test.go:360
Function
TestOrderedMap_Has
(t *testing.T)
v2/orderedmap_test.go:354
Function
TestOrderedMap_Has
(t *testing.T)
v3/orderedmap_test.go:384
Function
TestReplaceKey
(t *testing.T)
v2/orderedmap_test.go:101
Function
TestReplaceKey
(t *testing.T)
v3/orderedmap_test.go:102
Function
TestSet
(t *testing.T)
orderedmap_test.go:83
Function
TestSet
(t *testing.T)
v2/orderedmap_test.go:66
Function
TestSet
(t *testing.T)
v3/orderedmap_test.go:67
Function
TestSetAndGet
(t *testing.T)
v2/orderedmap_test.go:317
Function
TestSetAndGet
(t *testing.T)
v3/orderedmap_test.go:317
Method
Values
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
← previous
301–377 of 377, ranked by callers