Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/badgerodon/collections
/ functions
Functions
109 in github.com/badgerodon/collections
⨍
Functions
109
◇
Types & classes
16
↓ 6 callers
Method
Size
()
collections.go:49
↓ 5 callers
Function
mod
(x, y T)
collections.go:112
↓ 4 callers
Function
Map
Map maps all the values in a collection to a new collection.
collection.go:17
↓ 4 callers
Function
NewPair
NewPair creates a new Pair.
tuples.go:10
↓ 3 callers
Method
Delete
(value T)
collections.go:46
↓ 3 callers
Method
PopBack
()
collections.go:14
↓ 3 callers
Method
PushBack
(value T)
collections.go:16
↓ 3 callers
Method
Set
(key TKey, value TValue)
collections.go:28
↓ 3 callers
Method
resize
(size int)
slice.go:105
↓ 2 callers
Method
ForEach
(callback func(T) bool)
collections.go:47
↓ 2 callers
Method
Get
(key TKey)
collections.go:26
↓ 2 callers
Method
Has
(value T)
collections.go:48
↓ 2 callers
Method
PopFront
()
collections.go:15
↓ 2 callers
Method
maybeGrow
()
slice.go:88
↓ 1 callers
Method
Add
(value T)
collections.go:44
↓ 1 callers
Method
Keys
()
collections.go:27
↓ 1 callers
Function
NewSlice
NewSlice creates a new slice from a collection.
collections.go:83
↓ 1 callers
Method
PeekBack
()
slice.go:20
↓ 1 callers
Method
PeekFront
()
slice.go:28
↓ 1 callers
Method
PushFront
(value T)
collections.go:17
↓ 1 callers
Method
isFull
()
slice.go:80
↓ 1 callers
Method
isSparse
()
slice.go:84
↓ 1 callers
Function
newDictionaryViaMap
()
map.go:9
↓ 1 callers
Function
newSetViaBTree
(less func(T, T) bool)
btree.go:76
Method
Add
(value T)
map.go:66
Method
Add
(value T)
btree.go:83
Method
Clear
()
collections.go:11
Method
Clear
()
collections.go:23
Method
Clear
()
collections.go:35
Method
Clear
()
collections.go:45
Method
Clear
()
collections.go:54
Method
Clear
()
map.go:15
Method
Clear
()
map.go:70
Method
Clear
()
btree.go:21
Method
Clear
()
btree.go:87
Method
Clear
()
slice.go:15
Method
Clear
()
slice.go:125
Method
Clear
()
slice.go:162
Method
Delete
(key TKey)
collections.go:24
Method
Delete
(key TKey)
map.go:19
Method
Delete
(value T)
map.go:74
Method
Delete
(key TKey)
btree.go:29
Method
Delete
(value T)
btree.go:91
Method
ForEach
(callback func(T) bool)
collections.go:5
Method
ForEach
(callback func(Pair[TKey, TValue]) bool)
collections.go:25
Method
ForEach
(callback func(entry Pair[TKey, TValue]) bool)
map.go:23
Method
ForEach
(callback func(T) bool)
map.go:78
Method
ForEach
(callback func(T) bool)
collection.go:8
Method
ForEach
(callback func(Pair[TKey, TValue]) bool)
btree.go:34
Method
ForEach
(callback func(T) bool)
btree.go:95
Method
Get
(key TKey)
map.go:31
Method
Get
(key TKey)
btree.go:40
Method
Has
(value T)
map.go:86
Method
Has
(value T)
btree.go:99
Method
Keys
()
map.go:36
Method
Keys
()
btree.go:49
Function
NewDeque
NewDeque creates a new Deque implemented using a slice as a ring buffer.
collections.go:63
Function
NewDictionary
NewDictionary creates a new Dictionary implemented using a map.
collections.go:68
Function
NewQueue
NewQueue creates a new Queue implemented using a slice.
collections.go:73
Function
NewSet
NewSet creates a new Set implemented using a map.
collections.go:78
Function
NewSortedDictionary
NewSortedDictionary creates a new Dictionary implemented using a btree, providing sorted iteration by the less function.
collections.go:93
Function
NewSortedSet
NewSortedSet creates a new Set implemented using a btree, providing sorted iteration by the less function.
collections.go:98
Function
NewStack
NewStack creates a new Stack implemented using a slice.
collections.go:103
Method
Peek
()
collections.go:36
Method
Peek
()
collections.go:55
Method
Peek
()
slice.go:129
Method
Peek
()
slice.go:166
Method
PeekBack
()
collections.go:12
Method
PeekFront
()
collections.go:13
Method
Pop
()
collections.go:37
Method
Pop
()
collections.go:56
Method
Pop
()
slice.go:136
Method
Pop
()
slice.go:173
Method
PopBack
()
slice.go:36
Method
PopFront
()
slice.go:47
Method
Push
(value T)
collections.go:38
Method
Push
(value T)
collections.go:57
Method
Push
(value T)
slice.go:144
Method
Push
(value T)
slice.go:181
Method
PushBack
(value T)
slice.go:58
Method
PushFront
(value T)
slice.go:65
Method
Set
(key TKey, value TValue)
map.go:42
Method
Set
(key TKey, value TValue)
btree.go:55
Method
Size
()
collections.go:6
Method
Size
()
collections.go:18
Method
Size
()
collections.go:29
Method
Size
()
collections.go:39
Method
Size
()
collections.go:58
Method
Size
()
map.go:46
Method
Size
()
map.go:91
Method
Size
()
collection.go:12
Method
Size
()
btree.go:59
Method
Size
()
btree.go:104
Method
Size
()
slice.go:72
Method
Size
()
slice.go:148
Method
Size
()
slice.go:185
Function
TestDequeViaRingSlice
(t *testing.T)
slice_test.go:9
Function
TestMapSet
(t *testing.T)
map_test.go:9
Function
TestMapViaBTree
(t *testing.T)
btree_test.go:11
Method
Values
()
collections.go:30
next →
1–100 of 109, ranked by callers