arrayutils

package
v0.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InInt added in v0.0.26

func InInt(slice []int, target int) bool

In is delegated to verify if the given value is present in the target slice

func InRune added in v0.0.26

func InRune(slice []rune, target rune) bool

In is delegated to verify if the given value is present in the target slice

func JoinInts added in v0.0.20

func JoinInts(ints []int, delimiter string) string

JoinInts use a strings.Builder for concatenate the input string array. It concatenate the strings among the delimiter in input

func JoinStrings

func JoinStrings(strs []string, delimiter string) string

JoinStrings use a strings.Builder for concatenate the input string array. It concatenate the strings among the delimiter in input

func RemoveElement

func RemoveElement(s []string, i int) []string

RemoveElement is delegated to delete the element related to index i

func RemoveElementsFromStringByIndex added in v0.0.25

func RemoveElementsFromStringByIndex(data []string, j []int) []string

RemoveElementsFromStringByIndex delete the element of the indexes contained in j of the data in input

func RemoveIntByIndex added in v0.0.20

func RemoveIntByIndex(slice []int, s int) []int

RemoveIntByIndex is delegated to remove the element of index s

func RemoveIntByValue added in v0.0.24

func RemoveIntByValue(slice []int, value int) []int

RemoveIntByValue is delegated to remove the element that contains the given value

func RemoveStringByIndex added in v0.0.20

func RemoveStringByIndex(slice []string, s int) []string

RemoveStringByIndex the item in position s from the input array

func RemoveStrings added in v0.0.20

func RemoveStrings(slice []string, toRemove []string) []string

RemoveStrings is delegated to remove the input 'toRemove' value from the given slice

func ReverseArrayInt added in v0.0.20

func ReverseArrayInt(n1 []int) []int

ReverseArrayInt is delegated to return the inverse rappresentation of the array

func ReverseArrayString added in v0.0.20

func ReverseArrayString(n1 []string) []string

ReverseArrayString is delegated to return the inverse rappresentation of the array

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL