Documentation
¶
Index ¶
- func Abs(i int) int
- func Check(err error)
- func Combinations[T any](set []T, n int) (subsets [][]T)
- func CreateSlice[T any](len int, defaultValue T) []T
- func GCD(a, b int) int
- func GetChar(str string, index int) rune
- func IntPow(n, m int) int
- func IntersectHash[T comparable](a []T, b []T) []T
- func IntersectSorted[T comparable](a []T, b []T) []T
- func IsInteger(num float64) bool
- func IsSameElement[T comparable](slice []T) bool
- func LCM(a, b int) int
- func LcmAll(a int, bs ...int) int
- func MapContains[T, M comparable](m map[T]M, value M) bool
- func MapCountOccurrences[T, M comparable](m map[T]M, value M) int
- func Max(values ...int) int
- func Min(values ...int) int
- func Multiply(values ...int) int
- func MustAtoi(s string) int
- func MustScanf(line, format string, a ...interface{})
- func ParseIntList(s, sep string) []int
- func ParseIntMap(s, sep string) map[int]int
- func Reduce[T, M any](s []T, f func(M, T) M, initValue M) M
- func ReplaceAllStringSubmatchFunc(re *regexp.Regexp, str string, repl func([]string) string) string
- func SanitizeIndex(index int, maxIndex int) int
- func SetContainsAll[T, M comparable](set map[T]M, key ...T) bool
- func StandardizeSpaces(s string) string
- func Sum(values ...int) int
- func TransposeMatrix[T any](slice [][]T) [][]T
- func UintPow(n, m uint64) uint64
- func Zip[T, U any](t []T, u []U) iter.Seq2[T, U]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Combinations ¶
func CreateSlice ¶
func IntersectHash ¶
func IntersectHash[T comparable](a []T, b []T) []T
func IntersectSorted ¶
func IntersectSorted[T comparable](a []T, b []T) []T
func IsSameElement ¶
func IsSameElement[T comparable](slice []T) bool
func MapContains ¶
func MapContains[T, M comparable](m map[T]M, value M) bool
func MapCountOccurrences ¶
func MapCountOccurrences[T, M comparable](m map[T]M, value M) int
func ParseIntList ¶
func ParseIntMap ¶
func SanitizeIndex ¶
func SetContainsAll ¶
func SetContainsAll[T, M comparable](set map[T]M, key ...T) bool
func StandardizeSpaces ¶
func TransposeMatrix ¶
func TransposeMatrix[T any](slice [][]T) [][]T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.