/go-perm

Permutation Generator in Go

Primary LanguageGoMIT LicenseMIT

Permutation Generator in Go

Installation

$ go get -u github.com/yosssi/go-perm

Usage

perm.Int([]int{1,2,3})
// -> [[1 2 3] [1 3 2] [2 1 3] [2 3 1] [3 1 2] [3 2 1]]