13 lines
120 B
Go
13 lines
120 B
Go
|
package ds
|
||
|
|
||
|
type Stack[T any] interface {
|
||
|
Addable[T]
|
||
|
Sized
|
||
|
|
||
|
Push(value T)
|
||
|
Pop() T
|
||
|
|
||
|
Peek() T
|
||
|
PeekAt(index int) T
|
||
|
}
|