mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
create
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package collections
|
||||
|
||||
// 列表
|
||||
type List[T any] interface {
|
||||
Add(T)
|
||||
Delete(T)
|
||||
@ -7,6 +8,7 @@ type List[T any] interface {
|
||||
ToSlice() []T
|
||||
}
|
||||
|
||||
// 队列
|
||||
type Queue[T any] interface {
|
||||
Put(T)
|
||||
Poll() T
|
||||
|
Reference in New Issue
Block a user