Documentation ¶
Index ¶
- func Abs(x int) int
- func Check(err error)
- func Map[T any, S any](a []T, f func(x T) S) []S
- func MapInPlace[T any](a []T, f func(x T) T)
- func Max[T int | int8 | int16 | int32 | int64 | float32 | float64](xs []T) T
- func Min[T int | int8 | int16 | int32 | int64 | float32 | float64](xs []T) T
- func PopBack[T any](xs []T) ([]T, T, error)
- func PopFront[T any](xs []T) ([]T, T, error)
- func PushBack[T any](xs []T, s T) []T
- func PushFront[T any](xs []T, s T) []T
- func ReadLines(filename string) []string
- func ReadString(filename string) string
- func RemoveAt[T any](a []T, index int) []T
- func Reverse[T any](a []T) []T
- func Set[T comparable](a []T) []T
- func SortAscending(a []int) []int
- func SortDescending(a []int) []int
- func SplitAndTrim(s string) []string
- func StrToDigits(a string) []int
- func Sum(a []int) int
- func ToIntMust(a string) int
- func ToInts(a []string) []int
- func Zip(a string, b string) [][]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapInPlace ¶
func MapInPlace[T any](a []T, f func(x T) T)
func ReadString ¶
func Set ¶
func Set[T comparable](a []T) []T
func SortAscending ¶
func SortDescending ¶
func SplitAndTrim ¶
func StrToDigits ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.