You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ds/arraymap.go
+52-40Lines changed: 52 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -2,60 +2,77 @@ package ds
2
2
3
3
import (
4
4
"iter"
5
-
6
-
"golang.org/x/exp/constraints"
7
5
)
8
6
9
-
// Acts like a map, but backed by an integer indexed slice instead of a map
10
-
// This is mostly for use cases where you have a small list of increasing numbers that you want to store in an array, but you dont want to worry about ensuring the bounds are always correct
11
-
// Note: If you put a huge key in here, the slice will allocate a ton of space.
// Acts like a map, but backed by an integer indexed slice instead of a map
10
+
// This is mostly for use cases where you have a small list of increasing numbers that you want to store in an array, but you dont want to worry about ensuring the bounds are always correct
11
+
// Note: If you put a huge key in here, the slice will allocate a ton of space.
0 commit comments