Documentation
¶
Index ¶
- func AbsInt[T Integer](x T) T
- func Choices[T any](collection [][]T) [][]T
- func ExtGCD[I Integer](a, b I) (I, I, I)
- func ExtLCM[I Integer](mu []I, lambda []I) (I, I)
- func GCD[I Integer](a, b I) I
- func IPow[I Integer](a, b I) I
- func ISqrt[T Integer](x T) T
- func LCM[I Integer](a, b I, integers ...I) I
- func LineCounter(r *os.File) (int, error)
- func Permute[T any, S []T](s S) []S
- func SliceDifference[T comparable](a, b []T) []T
- func SortedMerge[T cmp.Ordered](a, b []T) []T
- func SortedUniqueInsert[T cmp.Ordered](x []T, e T) ([]T, bool)
- type Integer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceDifference ¶
func SliceDifference[T comparable](a, b []T) []T
func SortedMerge ¶
func SortedUniqueInsert ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.