Documentation ¶
Index ¶
- func Apply[T any](v *[]T, fn func(int, T) T, inplace bool) []T
- func ContainStrings(slice []string, target string) bool
- func Filter[T any](slice []T, f func(T) bool) []T
- func InInt(slice []int, target int) bool
- func InRune(slice []rune, target rune) bool
- func InStrings(slice []string, target string) bool
- func JoinNumber[T types.Number](n []T, delimiter string) string
- func JoinStrings(strs []string, delimiter string) string
- func PadSlice[T any](data *[]T, n int, v T)
- func RemoveByIndex[T types.Number](slice []T, s int) []T
- func RemoveByValue[T types.Number](slice []T, value T) []T
- func RemoveElement(s []string, i int) []string
- func RemoveElementsFromMatrixByIndex(data [][]string, j []int) [][]string
- func RemoveElementsFromStringByIndex(data []string, j []int) []string
- func RemoveStringByIndex(slice []string, s int) []string
- func RemoveStrings(slice, toRemove []string) []string
- func ReverseArray[T types.Number](n1 []T) []T
- func ReverseArrayString(n1 []string) []string
- func SplitEqual[T any](data []T, n int) ([][]T, []T)
- func ToByte(slice []string, separator string) []byte
- func UniqueString(slice []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainStrings ¶ added in v0.0.97
ContainStrings is delegated to verify if the given string arrays contains the target
func InInt ¶ added in v0.0.26
InInt is delegated to verify if the given value is present in the target slice
func InRune ¶ added in v0.0.26
InRune is delegated to verify if the given value is present in the target slice
func InStrings ¶ added in v0.0.45
InStrings is delegated to verify if the given string arrays contains the target
func JoinNumber ¶ added in v0.0.94
JoinNumber use a strings.Builder for concatenate the input string array. It concatenates the strings among the delimiter in input
func JoinStrings ¶
JoinStrings use a strings.Builder for concatenate the input string array. It concatenates the strings among the delimiter in input
func RemoveByIndex ¶ added in v0.0.94
RemoveByIndex is delegated to remove the element of index s
func RemoveByValue ¶ added in v0.0.94
RemoveByValue is delegated to remove the element that contains the given value
func RemoveElement ¶
RemoveElement is delegated to delete the element related to index i
func RemoveElementsFromMatrixByIndex ¶ added in v0.0.58
func RemoveElementsFromStringByIndex ¶ added in v0.0.25
RemoveElementsFromStringByIndex delete the element of the indexes contained in j of the data in input
func RemoveStringByIndex ¶ added in v0.0.20
RemoveStringByIndex the item in position s from the input array
func RemoveStrings ¶ added in v0.0.20
RemoveStrings is delegated to remove the input 'toRemove' value from the given slice
func ReverseArray ¶ added in v0.0.19
ReverseArray is delegated to return the inverse rappresentation of the array FIXME: Use the same array instead of allocate a new array
func ReverseArrayString ¶ added in v0.0.20
ReverseArrayString is delegated to return the inverse rappresentation of the array
func SplitEqual ¶ added in v0.0.97
SplitEqual is delegated to split the given data into slice of equal length
func UniqueString ¶ added in v0.0.63
Types ¶
This section is empty.