ds/impl_queue_array.go

9 lines
173 B
Go
Raw Normal View History

2023-01-20 21:48:46 +01:00
package ds
type ArrayQueue[T any] ListQueue[T]
func NewArrayQueue[T any]() *ArrayQueue[T] {
stack := NewListQueue[T](new(ArrayList[T]))
return (*ArrayQueue[T])(stack)
}