Index finite lists of positive integers: Difference between revisions

Content added Content deleted
Line 69: Line 69:
}
}


// Split the base 16 represntation at "a", recover the base 10 numbers.
// Split the base 16 representation at "a", recover the base 10 numbers.
func unrank(r *big.Int) []big.Int {
func unrank(r *big.Int) []big.Int {
s := strings.Split(fmt.Sprintf("%x", r), "a")
s := strings.Split(fmt.Sprintf("%x", r), "a")