package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jul 1, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Copy[V any](slice []V) []V
Copy 复制特定切片
func CopyMatrix[V any](slice [][]V) [][]V
CopyMatrix 复制二维数组
func Del[V any](slice *[]V, index int)
Del 删除特定索引的元素
func Insert[V any](slice *[]V, index int, value V)
Insert 在特定索引插入元素
func Move[V any](slice *[]V, index, to int)
Move 移动特定索引
func NextLoop[V any](slice []V, i int) (next int, value V)
NextLoop 返回 i 的下一个数组成员,当 i 达到数组长度时从 0 开始
Source Files
¶
Click to show internal directories.
Click to hide internal directories.