ds/int_stack.go

14 lines
131 B
Go

package ds
type Stack[T any] interface {
Addable[T]
Sized
Clearable
Push(value T)
Pop() T
Peek() T
PeekAt(index int) T
}