9 lines
173 B
Go
9 lines
173 B
Go
|
package ds
|
||
|
|
||
|
type ArrayQueue[T any] ListQueue[T]
|
||
|
|
||
|
func NewArrayQueue[T any]() *ArrayQueue[T] {
|
||
|
stack := NewListQueue[T](new(ArrayList[T]))
|
||
|
return (*ArrayQueue[T])(stack)
|
||
|
}
|