Documentation ¶
Index ¶
- type FibonacciGenerator
- func (fg *FibonacciGenerator) SetChannelBuffer(size int)
- func (generator *FibonacciGenerator) TakeBigInt(maxIndex int) <-chan *big.Int
- func (generator *FibonacciGenerator) TakeInt64(maxIndex int) <-chan int64
- func (generator *FibonacciGenerator) TakeUint64(maxIndex int) <-chan uint64
- func (generator *FibonacciGenerator) UpToBigInt(maxValue *big.Int) <-chan *big.Int
- func (generator *FibonacciGenerator) UpToInt64(maxValue int64) <-chan int64
- func (generator *FibonacciGenerator) UpToUint64(maxValue uint64) <-chan uint64
- func (generator *FibonacciGenerator) WhileBigInt(condition func(index int, value *big.Int) bool) <-chan *big.Int
- func (generator *FibonacciGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64
- func (generator *FibonacciGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64
- type PrimeGenerator
- func (fg *PrimeGenerator) SetChannelBuffer(size int)
- func (generator *PrimeGenerator) TakeInt64(maxIndex int) <-chan int64
- func (generator *PrimeGenerator) TakeUint64(maxIndex int) <-chan uint64
- func (generator *PrimeGenerator) UpToInt64(maxValue int64) <-chan int64
- func (generator *PrimeGenerator) UpToUint64(maxValue uint64) <-chan uint64
- func (generator *PrimeGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64
- func (generator *PrimeGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64
- type TriangularNumberGenerator
- func (fg *TriangularNumberGenerator) SetChannelBuffer(size int)
- func (generator *TriangularNumberGenerator) TakeBigInt(maxIndex int) <-chan *big.Int
- func (generator *TriangularNumberGenerator) TakeInt64(maxIndex int) <-chan int64
- func (generator *TriangularNumberGenerator) TakeUint64(maxIndex int) <-chan uint64
- func (generator *TriangularNumberGenerator) UpToBigInt(maxValue *big.Int) <-chan *big.Int
- func (generator *TriangularNumberGenerator) UpToInt64(maxValue int64) <-chan int64
- func (generator *TriangularNumberGenerator) UpToUint64(maxValue uint64) <-chan uint64
- func (generator *TriangularNumberGenerator) WhileBigInt(condition func(index int, value *big.Int) bool) <-chan *big.Int
- func (generator *TriangularNumberGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64
- func (generator *TriangularNumberGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FibonacciGenerator ¶
type FibonacciGenerator struct {
// contains filtered or unexported fields
}
+gen sequenceGenerator:"Iterator[int64,uint64,*bigInt]"
func NewFibonacciGenerator ¶
func NewFibonacciGenerator(repeatInitialOne bool) *FibonacciGenerator
func (*FibonacciGenerator) SetChannelBuffer ¶
func (fg *FibonacciGenerator) SetChannelBuffer(size int)
func (*FibonacciGenerator) TakeBigInt ¶
func (generator *FibonacciGenerator) TakeBigInt(maxIndex int) <-chan *big.Int
func (*FibonacciGenerator) TakeInt64 ¶
func (generator *FibonacciGenerator) TakeInt64(maxIndex int) <-chan int64
func (*FibonacciGenerator) TakeUint64 ¶
func (generator *FibonacciGenerator) TakeUint64(maxIndex int) <-chan uint64
func (*FibonacciGenerator) UpToBigInt ¶
func (generator *FibonacciGenerator) UpToBigInt(maxValue *big.Int) <-chan *big.Int
func (*FibonacciGenerator) UpToInt64 ¶
func (generator *FibonacciGenerator) UpToInt64(maxValue int64) <-chan int64
func (*FibonacciGenerator) UpToUint64 ¶
func (generator *FibonacciGenerator) UpToUint64(maxValue uint64) <-chan uint64
func (*FibonacciGenerator) WhileBigInt ¶
func (*FibonacciGenerator) WhileInt64 ¶
func (generator *FibonacciGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64
func (*FibonacciGenerator) WhileUint64 ¶
func (generator *FibonacciGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64
type PrimeGenerator ¶
type PrimeGenerator struct {
// contains filtered or unexported fields
}
+gen sequenceGenerator:"Iterator[int64,uint64]"
func NewPrimeGenerator ¶
func NewPrimeGenerator() *PrimeGenerator
func (*PrimeGenerator) SetChannelBuffer ¶
func (fg *PrimeGenerator) SetChannelBuffer(size int)
func (*PrimeGenerator) TakeInt64 ¶
func (generator *PrimeGenerator) TakeInt64(maxIndex int) <-chan int64
func (*PrimeGenerator) TakeUint64 ¶
func (generator *PrimeGenerator) TakeUint64(maxIndex int) <-chan uint64
func (*PrimeGenerator) UpToInt64 ¶
func (generator *PrimeGenerator) UpToInt64(maxValue int64) <-chan int64
func (*PrimeGenerator) UpToUint64 ¶
func (generator *PrimeGenerator) UpToUint64(maxValue uint64) <-chan uint64
func (*PrimeGenerator) WhileInt64 ¶
func (generator *PrimeGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64
func (*PrimeGenerator) WhileUint64 ¶
func (generator *PrimeGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64
type TriangularNumberGenerator ¶
type TriangularNumberGenerator struct {
// contains filtered or unexported fields
}
+gen sequenceGenerator:"Iterator[int64,uint64,*bigInt]"
func NewTriangularGenerator ¶
func NewTriangularGenerator() *TriangularNumberGenerator
func (*TriangularNumberGenerator) SetChannelBuffer ¶
func (fg *TriangularNumberGenerator) SetChannelBuffer(size int)
func (*TriangularNumberGenerator) TakeBigInt ¶
func (generator *TriangularNumberGenerator) TakeBigInt(maxIndex int) <-chan *big.Int
func (*TriangularNumberGenerator) TakeInt64 ¶
func (generator *TriangularNumberGenerator) TakeInt64(maxIndex int) <-chan int64
func (*TriangularNumberGenerator) TakeUint64 ¶
func (generator *TriangularNumberGenerator) TakeUint64(maxIndex int) <-chan uint64
func (*TriangularNumberGenerator) UpToBigInt ¶
func (generator *TriangularNumberGenerator) UpToBigInt(maxValue *big.Int) <-chan *big.Int
func (*TriangularNumberGenerator) UpToInt64 ¶
func (generator *TriangularNumberGenerator) UpToInt64(maxValue int64) <-chan int64
func (*TriangularNumberGenerator) UpToUint64 ¶
func (generator *TriangularNumberGenerator) UpToUint64(maxValue uint64) <-chan uint64
func (*TriangularNumberGenerator) WhileBigInt ¶
func (*TriangularNumberGenerator) WhileInt64 ¶
func (generator *TriangularNumberGenerator) WhileInt64(condition func(index int, value int64) bool) <-chan int64
func (*TriangularNumberGenerator) WhileUint64 ¶
func (generator *TriangularNumberGenerator) WhileUint64(condition func(index int, value uint64) bool) <-chan uint64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.