ds/int_queue.go

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
}