9 lines
184 B
Go
9 lines
184 B
Go
|
package ds
|
||
|
|
||
|
type LinkedListStack[T any] ListStack[T]
|
||
|
|
||
|
func NewLinkedListStack[T any]() *ArrayStack[T] {
|
||
|
stack := NewListStack[T](new(LinkedList[T]))
|
||
|
return (*ArrayStack[T])(stack)
|
||
|
}
|