调整迭代器示例集合推迭代器的逻辑实现细节
This commit is contained in:
parent
b8c002e39c
commit
2c5eff87f7
@ -41,7 +41,7 @@ func (s *Set[T]) Len() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Set[T]) All() iter.Seq[T] {
|
func (s *Set[T]) All() iter.Seq[T] {
|
||||||
return s.FilterMap(func(t T) bool {
|
return s.FilterMap(func(T) bool {
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user