arrays

package
v0.0.0-...-9d7f0f0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Include

func Include(arr []interface{}, ele interface{}) bool

func IncludeFloat64

func IncludeFloat64(arr []float64, ele float64) bool

func IncludeInt

func IncludeInt(arr []int, ele int) bool

func IncludeString

func IncludeString(arr []string, ele string) bool

func Index

func Index(arr []interface{}, ele interface{}) int

func IndexFloat64

func IndexFloat64(arr []float64, ele float64) int

func IndexInt

func IndexInt(arr []int, ele int) int

func IndexString

func IndexString(arr []string, ele string) int

func Map

func Map(arr []interface{}, call func(index int, val interface{}) interface{}) []interface{}

func MapFloat64

func MapFloat64(arr []float64, call func(index int, val float64) interface{}) []interface{}

func MapInt

func MapInt(arr []int, call func(index, val int) interface{}) []interface{}

func MapString

func MapString(arr []string, call func(index int, val string) interface{}) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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