GoCollections/collections/Stack.go

11 lines
198 B
Go

package collections
import "github.com/tursom/GoCollections/exceptions"
type Stack[T any] interface {
MutableIterable[T]
Push(element T) exceptions.Exception
Pop() (T, exceptions.Exception)
}