Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
Iter keeps data and index.
func New ¶
New creates *Iter object by given elements in parameter. If nothing is passed it creates an empty slice.
func (*Iter) First ¶ added in v1.0.0
func (i *Iter) First()
First updates the cursor by moving to first index.
func (*Iter) Last ¶ added in v1.0.0
func (i *Iter) Last()
Last updates the cursor by moving to last index. If array is empty, the cursor will be zero.
func (*Iter) Next ¶
Next returns whether iter has element in next. If there is no next element, it returns false.
Click to show internal directories.
Click to hide internal directories.