13 lines
127 B
Go
13 lines
127 B
Go
|
package ds
|
||
|
|
||
|
type Queue[T any] interface {
|
||
|
Addable[T]
|
||
|
Sized
|
||
|
|
||
|
Enqueue(value T)
|
||
|
Dequeue() T
|
||
|
|
||
|
Peek() T
|
||
|
PeekAt(index int) T
|
||
|
}
|