combinationgen

package
Version: v0.0.0-...-8cba18c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 2 Imported by: 1

README

go-common/combinationgen

This repository contains the go-common/combinationgen library.

To install:

go get github.com/ugorji/go-common/combinationgen

Package Documentation

Package combinationgen creates an iterator for all combinations of a (non-uniform) matrix.

Exported Package API

type T struct{ ... }
    func New(vprops []interface{}, combo [][]interface{}) (cg *T, err error)

Documentation

Overview

Package combinationgen creates an iterator for all combinations of a (non-uniform) matrix.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	// contains filtered or unexported fields
}

Generates combinations of everything in the combo slice of slices.

func New

func New(vprops []interface{}, combo [][]interface{}) (cg *T, err error)

func (*T) First

func (x *T) First() *T

func (*T) Next

func (x *T) Next() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL