gods/container.go
2023-10-24 00:49:26 +03:00

14 lines
224 B
Go

package gods
// All the containers must implement the interface.
type Container[V any] interface {
Empty() bool
Size() int
Clear()
Values() []V
//String() string
}
type Comparator[V any] interface {
Less(v1, v2 V)
}