listopt

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteString

func DeleteString(strList []string, delStr string) []string

DeleteString 删除列表中的字串

func DifferenceStr1

func DifferenceStr1(slice1, slice2 []string) []string

DifferenceStr1 求差集

func DifferenceStr2

func DifferenceStr2(slice1 []string, slice2 []string) []string

DifferenceStr2 求差集

func In

func In(strList []string, target string) bool

In 判断是否在数组内

func IntersectStr

func IntersectStr(slice1, slice2 []string) []string

IntersectStr 求交集

func RemoveDuplicateInt

func RemoveDuplicateInt(languages []int) []int

func RemoveDuplicateString

func RemoveDuplicateString(languages []string) []string

func RemoveRepeatedElement

func RemoveRepeatedElement(slice interface{}) []interface{}

RemoveRepeatedElement 移除数组中重复的元素

func ReverseStr

func ReverseStr(arr []string) []string

ReverseStr 反序输出

func SplitList

func SplitList(arr []string, num int64) [][]string

SplitList 平均分割一个list到num个list里

func UnionStr

func UnionStr(slice1, slice2 []string) []string

UnionStr 求并集

Types

This section is empty.

Jump to

Keyboard shortcuts

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