perf: 优化代码结构,去除无用代码,去除重复代码

This commit is contained in:
kercylan98
2023-07-11 19:35:08 +08:00
parent a23e48b087
commit 47b8a333eb
12 changed files with 49 additions and 58 deletions

View File

@@ -5,7 +5,6 @@ type MapReadonly[Key comparable, Value any] interface {
Get(key Key) Value
Exist(key Key) bool
GetExist(key Key) (Value, bool)
Length() int
Range(handle func(key Key, value Value))
RangeSkip(handle func(key Key, value Value) bool)
RangeBreakout(handle func(key Key, value Value) bool)