package
Version:
v0.0.0-...-51178b5
Opens a new window with list of versions in this module.
Published: Jun 27, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type IQueue[T interface{}] interface {
First() T
Last() T
}
type Queue[T interface{}] struct {
}
func NewQueue[T interface{}](length ...int) *Queue[T]
func (q *Queue[T]) First() T
删除第一个元素并返回
func (q *Queue[T]) Last() T
删除最后一个元素并返回
Source Files
¶
Click to show internal directories.
Click to hide internal directories.