gods/container.go

15 lines
224 B
Go
Raw Permalink Normal View History

2023-10-24 00:48:29 +03:00
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)
}