arrayKit

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	IndexNotFound = -1 // 数组中元素未找到的下标,值为-1
)

Variables

This section is empty.

Functions

func Contains

func Contains(strs []string, char string) bool

Contains 数组中是否包含元素 @param strs 数组 @param value 被检查的元素 @return 是否包含

func IndexOf

func IndexOf(strs []string, char string) int

IndexOf 返回数组中指定元素所在位置,未找到返回IndexNotFound @param strs 字符串数组 @param char 被检查的元素 @return 数组中指定元素所在位置,未找到返回IndexNotFound

Types

This section is empty.

Jump to

Keyboard shortcuts

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