arrayutils

package
v0.0.21-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 RemoveElementsFromString added in v0.0.20

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

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

func RemoveFromByte added in v0.0.5

func RemoveFromByte(s []byte, i int) []byte

RemoveFromByte Remove a given element from a string

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 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

ReverseArray 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