Documentation
¶
Overview ¶
Package bigints provides helpers for slices of multi-precision integers.
Index ¶
- func Clone(xs []*big.Int) []*big.Int
- func Contains(n *big.Int, xs []*big.Int) bool
- func Index(n *big.Int, xs []*big.Int) int
- func InsertSortedUnique(xs []*big.Int, x *big.Int) []*big.Int
- func Int64s(xs ...int64) []*big.Int
- func IsSorted(xs []*big.Int) bool
- func Max(xs []*big.Int) *big.Int
- func MergeUnique(xs, ys []*big.Int) []*big.Int
- func Reverse(xs []*big.Int)
- func Sort(xs []*big.Int)
- func SortDescending(xs []*big.Int)
- func Unique(xs []*big.Int) []*big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Index ¶
Index returns the index of the first occurrence of n in xs, or -1 if it does not appear.
func InsertSortedUnique ¶
InsertSortedUnique inserts an integer into a slice of sorted distinct integers.
func MergeUnique ¶
MergeUnique merges two slices of sorted distinct integers. Elements in both slices are deduplicated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.