9 lines
173 B
Go
9 lines
173 B
Go
package ds
|
|
|
|
type ArrayStack[T any] ListStack[T]
|
|
|
|
func NewArrayStack[T any]() *ArrayStack[T] {
|
|
stack := NewListStack[T](new(ArrayList[T]))
|
|
return (*ArrayStack[T])(stack)
|
|
}
|