slices

package
v0.0.0-...-828062d Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func In_slice

func In_slice(val interface{}, slice []interface{}) bool

func Slice_chunk

func Slice_chunk(slice []interface{}, size int) (chunkslice [][]interface{})

func Slice_diff

func Slice_diff(slice1, slice2 []interface{}) (diffslice []interface{})

func Slice_filter

func Slice_filter(slice []interface{}, a filtertype) (ftslice []interface{})

func Slice_intersect

func Slice_intersect(slice1, slice2 []interface{}) (diffslice []interface{})

func Slice_merge

func Slice_merge(slice1, slice2 []interface{}) (c []interface{})

func Slice_pad

func Slice_pad(slice []interface{}, size int, val interface{}) []interface{}

func Slice_rand

func Slice_rand(a []interface{}) (b interface{})

func Slice_randList

func Slice_randList(min, max int) []int

func Slice_range

func Slice_range(start, end, step int64) (intslice []int64)

func Slice_reduce

func Slice_reduce(slice []interface{}, a reducetype) (dslice []interface{})

func Slice_shuffle

func Slice_shuffle(slice []interface{}) []interface{}

func Slice_sum

func Slice_sum(intslice []int64) (sum int64)

func Slice_unique

func Slice_unique(slice []interface{}) (uniqueslice []interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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