Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Empty = empty{}
Empty is the empty iterator.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator interface {
Next() bool
Value() elementT
}
Iterator provides for iterating over a Set.
type MapIterator ¶
type MapIterator struct {
// contains filtered or unexported fields
}
func Map ¶
func Map(i Iterator, m func(v elementT) elementT) *MapIterator
func (MapIterator) Next ¶
func (m MapIterator) Next() bool
func (MapIterator) Value ¶
func (m MapIterator) Value() elementT
type SliceIterator ¶
type SliceIterator struct {
// contains filtered or unexported fields
}
func NewSliceIterator ¶
func NewSliceIterator(slice []elementT) *SliceIterator
func (*SliceIterator) Next ¶
func (i *SliceIterator) Next() bool
func (*SliceIterator) Value ¶
func (i *SliceIterator) Value() elementT
Click to show internal directories.
Click to hide internal directories.