xintSlie

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsInterface

func AsInterface(this []int) []interface{}

func Contain

func Contain(arr []int, item int) bool

func Find

func Find(arr []int, fn IntArrSearchFunc) int

func FindIndex

func FindIndex(arr []int, fn IntArrSearchFunc) int

func ForEach

func ForEach(arr []int, fn IntArrForEachFunc)

func Join

func Join(arr []int, sep string) string

func Map

func Map(arr []int, fn IntArrMapFunc)

func Sort

func Sort(arr []int, comparer ...ArrSortCompareFunc)

func String

func String(this []int) string

Types

type TIntSlice

type TIntSlice []int

func New

func New(src ...[]int) TIntSlice

func (*TIntSlice) Append

func (iar *TIntSlice) Append(item ...int) int

func (*TIntSlice) Clear

func (iar *TIntSlice) Clear()

func (*TIntSlice) Concat

func (iar *TIntSlice) Concat(arrs ...[]int) int

func (TIntSlice) Contain

func (iar TIntSlice) Contain(item int) bool

func (*TIntSlice) Delete

func (iar *TIntSlice) Delete(index int) error

func (TIntSlice) Find

func (iar TIntSlice) Find(fn IntArrSearchFunc) int

func (TIntSlice) FindIndex

func (iar TIntSlice) FindIndex(fn IntArrSearchFunc) int

func (TIntSlice) ForEach

func (iar TIntSlice) ForEach(fn IntArrForEachFunc)

func (*TIntSlice) Insert

func (iar *TIntSlice) Insert(index int, item int) error

func (TIntSlice) Join

func (iar TIntSlice) Join(sep string) string

func (*TIntSlice) Prepend

func (iar *TIntSlice) Prepend(item ...int) int

func (TIntSlice) Size

func (iar TIntSlice) Size() int

func (TIntSlice) Sort

func (iar TIntSlice) Sort(comparer ...ArrSortCompareFunc)

func (TIntSlice) String

func (iar TIntSlice) String() string

Jump to

Keyboard shortcuts

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