Documentation ¶
Index ¶
- type OSet
- func (s *OSet) Append(item any)
- func (s *OSet) Contains(item any) bool
- func (s *OSet) Copy() *OSet
- func (s *OSet) Diff(sp *OSet) *OSet
- func (s *OSet) Inter(sp *OSet) *OSet
- func (s *OSet) Iterator() lib.Iterator
- func (s *OSet) Remove(item any)
- func (s *OSet) Size() int
- func (s *OSet) Union(sp *OSet) *OSet
- type OSetIterator
- type SSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSet ¶
type OSet struct {
// contains filtered or unexported fields
}
OSet 此处的items参数可以继续优化,修改为链表存储
type OSetIterator ¶
type OSetIterator struct {
// contains filtered or unexported fields
}
func (*OSetIterator) HasNext ¶
func (oi *OSetIterator) HasNext() bool
func (*OSetIterator) Item ¶
func (oi *OSetIterator) Item() any
func (*OSetIterator) Next ¶
func (oi *OSetIterator) Next()
func (*OSetIterator) Reset ¶
func (oi *OSetIterator) Reset()
Click to show internal directories.
Click to hide internal directories.