调整迭代器示例集合推迭代器的逻辑实现细节

This commit is contained in:
fantasticbin 2024-11-13 13:48:21 +08:00
parent b8c002e39c
commit 2c5eff87f7

View File

@ -41,7 +41,7 @@ func (s *Set[T]) Len() int {
}
func (s *Set[T]) All() iter.Seq[T] {
return s.FilterMap(func(t T) bool {
return s.FilterMap(func(T) bool {
return true
})
}