Documentation ¶
Overview ¶
Package seq provides facilities for creating and managing sequences of data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
Func wraps a function with the signature func(I,bool), implementing the Sequence[I] interface.
type IntsAscending ¶
type IntsAscending[I ints] struct {
Min, Max I
// contains filtered or unexported fields
}
IntsAscending is a sequence of ascending integers in the range [Min,Max).
func (*IntsAscending[I]) Next ¶
func (s *IntsAscending[I]) Next() (I, bool)
Next implements Sequence.
type IntsDescending ¶
type IntsDescending[I ints] struct {
Min, Max I
// contains filtered or unexported fields
}
IntsDescending constructs a sequence of ascending integers in the range [min,max).
func (*IntsDescending[I]) Next ¶
func (s *IntsDescending[I]) Next() (I, bool)
Next implements Sequence.
Click to show internal directories.
Click to hide internal directories.