ds/int_queue.go
2023-01-20 22:12:17 +01:00

14 lines
138 B
Go

package ds
type Queue[T any] interface {
Addable[T]
Sized
Clearable
Enqueue(value T)
Dequeue() T
Peek() T
PeekAt(index int) T
}