slices

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsStr

func ContainsStr(arr []string, str string) bool

func DifferenceStr

func DifferenceStr(a []string, b []string) []string

DifferenceStr return the difference set of `a-b`

func DistinctStr

func DistinctStr(arr []string) []string

func FilterStr

func FilterStr(arr []string, f func(string) string) []string

FilterStr applies f to each element in arr.

func RemoveEmptyStr

func RemoveEmptyStr(arr []string) []string

func RemovePunctuation

func RemovePunctuation(str string) string

func RemoveSpecifiedStr

func RemoveSpecifiedStr(arr []string, remove string) []string

func SearchStr

func SearchStr(arr []string, str string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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