ds/int_ring.go
2023-07-10 17:16:51 +02:00

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
}