Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicate = errors.New("Duplicate")
)
Functions ¶
This section is empty.
Types ¶
type Compare ¶
type Compare func(a interface{}, b interface{}) int
Compare func interface Allows for users of Skiplist to define sort strategy for skiplists Value "a" is the base subject of the comparison or the "left" side. Value "b" is the new subject or the "right" side. There are 3 possible int return values: "0" - The 2 values are exact matches. "1" - Value "a" is greather than value "b" "-1" - Value "a" is less than value "b"
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Concurrent-safe iterator to scan the list qithout removing items.
type List ¶
type List struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.