Documentation ¶
Index ¶
- func AXorB[T comparable](a, b []T) (aNotB, xor, bNotA []T)
- func AdjustPositions(positions []int) []int
- func Filter[T any](arr []T, f func(T) bool) []T
- func FilterAndReplaceSymbols(input string) string
- func Flatten[V any](arr [][]V) []V
- func GetMentionRegex() *regexp.Regexp
- func Map[T, U any](arr []T, f func(T) U) []U
- func MapMap[K comparable, T, V any](m []T, f func(T) (K, V)) map[K]V
- func Values[M ~map[K]V, K comparable, V any](m M) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AXorB ¶
func AXorB[T comparable](a, b []T) (aNotB, xor, bNotA []T)
func AdjustPositions ¶
positions に対して、位置が昇順になるように調整するための増減値を返す
func FilterAndReplaceSymbols ¶
func GetMentionRegex ¶
func MapMap ¶
func MapMap[K comparable, T, V any](m []T, f func(T) (K, V)) map[K]V
func Values ¶
func Values[M ~map[K]V, K comparable, V any](m M) []V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.