ds/int_stack.go

14 lines
131 B
Go
Raw Normal View History

2023-01-20 21:48:46 +01:00
package ds
type Stack[T any] interface {
Addable[T]
Sized
Clearable
2023-01-20 21:48:46 +01:00
Push(value T)
Pop() T
Peek() T
PeekAt(index int) T
}