container.go 224 B

1234567891011121314
  1. package gods
  2. // All the containers must implement the interface.
  3. type Container[V any] interface {
  4. Empty() bool
  5. Size() int
  6. Clear()
  7. Values() []V
  8. //String() string
  9. }
  10. type Comparator[V any] interface {
  11. Less(v1, v2 V)
  12. }