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 ContainsSorted(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 MergeUnique(xs, ys []*big.Int) []*big.Int
- func Sort(xs []*big.Int)
- func Unique(xs []*big.Int) []*big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsSorted ¶ added in v0.3.0
ContainsSorted reports whether n is in xs, which is assumed to be sorted.
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.