Documentation ¶
Overview ¶
Package combinations a package with combinations functions from python itertools
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Combination ¶
type Combination struct {
// contains filtered or unexported fields
}
Combination is
func NewCombination ¶
func NewCombination(objs []interface{}, repeat int) (*Combination, error)
NewCombination is constructor
func NewCombinationWithReplacement ¶
func NewCombinationWithReplacement(objs []interface{}, repeat int) (*Combination, error)
NewCombinationWithReplacement is constructor
func (*Combination) Next ¶
func (combinations *Combination) Next() bool
Next generates the next value for combination
func (*Combination) Value ¶
func (combinations *Combination) Value() []interface{}
Value gets the current value
type Permutation ¶
type Permutation struct {
// contains filtered or unexported fields
}
Permutation is
func NewPermutation ¶
func NewPermutation(objs []interface{}, repeat int) (*Permutation, error)
NewPermutation is constructor
func (*Permutation) Next ¶
func (permutation *Permutation) Next() bool
Next generates the next value for permutation
func (*Permutation) Value ¶
func (permutation *Permutation) Value() []interface{}
Value gets the current value
Click to show internal directories.
Click to hide internal directories.