14 lines
160 B
Go
14 lines
160 B
Go
|
package ds
|
||
|
|
||
|
type Ring[T any] interface {
|
||
|
Iterable[*T]
|
||
|
|
||
|
Next() Ring[T]
|
||
|
Prev() Ring[T]
|
||
|
|
||
|
Set(T)
|
||
|
Has() bool
|
||
|
Get() (T, bool)
|
||
|
GetOrDefault(defaultValue T) T
|
||
|
}
|