1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2022-05-20 17:17:31 +08:00
parent d4d68dc263
commit ed02794b04
11 changed files with 436 additions and 11 deletions

View File

@ -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