Documentation ¶
Index ¶
- type Easy
- type Iterator
- func FromFunc[T any](next func() (T, bool)) Iterator[T]
- func FromSlice[T any](data []T) Iterator[T]
- func FromValues[T any](v ...T) Iterator[T]
- func Generate[T any](rnd func() T) Iterator[T]
- func Map[T any, S any](it Iterator[T], m func(T) S) Iterator[S]
- func Range[T Numeric](begin, end, delta T) Iterator[T]
- func To(end int) Iterator[int]
- func (it Iterator[T]) Discard(count int) Iterator[T]
- func (it Iterator[T]) Easy() *Easy[T]
- func (it Iterator[T]) Filter(filter func(T) bool) Iterator[T]
- func (it Iterator[T]) Limit(limit int) Iterator[T]
- func (it Iterator[T]) Map(m func(T) T) Iterator[T]
- func (it Iterator[T]) Next() (T, bool)
- func (it Iterator[T]) Paginate(page, count int) Iterator[T]
- func (it Iterator[T]) Slice() []T
- type Numeric
- type Ranger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator[T any] struct { // contains filtered or unexported fields }
func FromValues ¶
type Numeric ¶
type Numeric interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.