intx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(arr []int, s int) bool

Contains 判断数组是否包含某一元素

func Equal

func Equal(arr1, arr2 []int) bool

Equal 相同数组(不计顺序)

func IndexOf

func IndexOf(arr []int, s int) int

IndexOf 下标, 没有则返回-1

func SortIntArrAsc

func SortIntArrAsc(array []int) []int

SortIntArrAsc 升序排序数组

func SumInt

func SumInt(arr []int) int

SumInt 求和

func SumPre

func SumPre(index int, arr []int) int

SumPre 求某一元素及之前所有元素的和

Types

This section is empty.

Jump to

Keyboard shortcuts

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