mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-16 11:00:14 +08:00
14 lines
305 B
Go
14 lines
305 B
Go
package collections
|
|
|
|
import "github.com/tursom/GoCollections/exceptions"
|
|
|
|
type Stack[T any] interface {
|
|
// Iterator MutableIterable
|
|
Iterator() Iterator[T]
|
|
// MutableIterator MutableIterable
|
|
MutableIterator() MutableIterator[T]
|
|
|
|
Push(element T) exceptions.Exception
|
|
Pop() (T, exceptions.Exception)
|
|
}
|