Documentation ¶
Index ¶
- func Abs[T int | uint | float64](x T) T
- func AbsDiff[T int | uint | float64](a, b T) T
- func CmdSolutionRunner[T any](day int, p1, p2 func(*[]string) T)
- func DivMod(n, d int) (int, int)
- func EndTimer(s StartTime)
- func FileToLines(filename string) []string
- func GCD(a, b int) int
- func GetArgs() (string, int)
- func GetFloatsFromString(s string, sep string) []float64
- func GetIntsFromString(s string, sep string) []int
- func GetIntsFromStrings(los *[]string) []int
- func GetMapKeys[M ~map[K]V, K comparable, V any](m M) []K
- func GetMapValues[M ~map[K]V, K comparable, V any](m M) []V
- func KeysByVal[M ~map[K]V, K comparable, V comparable](m M, x V) []K
- func LCM(a, b int) int
- func Quadratic(a, b, c float64) (float64, float64, error)
- func RunSolutions[T any](day int, p1, p2 func(*[]string) T, f1 string, f2 string, loglevel int)
- func WriteAGif(images *[]*image.Paletted, delays *[]int, filename string)
- func WriteGif(img *image.Paletted, filename string)
- type StartTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdSolutionRunner ¶
func FileToLines ¶
func GetFloatsFromString ¶
func GetIntsFromString ¶
func GetIntsFromStrings ¶
func GetMapKeys ¶
func GetMapKeys[M ~map[K]V, K comparable, V any](m M) []K
func GetMapValues ¶
func GetMapValues[M ~map[K]V, K comparable, V any](m M) []V
func KeysByVal ¶
func KeysByVal[M ~map[K]V, K comparable, V comparable](m M, x V) []K
func RunSolutions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.