Index finite lists of positive integers: Difference between revisions
Content added Content deleted
m (→{{header|Go}}) |
m (→{{header|Go}}) |
||
Line 69: | Line 69: | ||
} |
} |
||
// Split the base 16 |
// 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") |