slices

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FitCapToLenInt

func FitCapToLenInt(slice []int) []int

func FitCapToLenString

func FitCapToLenString(slice []string) []string

func FitCapToLenUint

func FitCapToLenUint(slice []uint) []uint

func IncrAppendInt

func IncrAppendInt(slice []int, s int) []int

func IncrAppendString

func IncrAppendString(slice []string, s string) []string

func IncrAppendUint

func IncrAppendUint(slice []uint, s uint) []uint

func InterfacesFilter added in v0.2.3

func InterfacesFilter(eles []interface{}, filter func(interface{}) bool) []interface{}

func InterfacesFilterInplace added in v0.2.3

func InterfacesFilterInplace(eles []interface{}, filter func(interface{}) bool) []interface{}

func InterfacesMap added in v0.2.3

func InterfacesMap(eles []interface{}, mapper func(interface{}) interface{}) []interface{}

func IntsFilter added in v0.2.3

func IntsFilter(eles []int, filter func(int) bool) []int

func IntsFilterInplace added in v0.2.3

func IntsFilterInplace(eles []int, filter func(int) bool) []int

func IntsMap added in v0.2.3

func IntsMap(eles []int, mapper func(int) int) []int

func MergeNodes added in v0.2.3

func MergeNodes(nodes Nodes, isSorted bool) int

func RemoveElement added in v0.2.3

func RemoveElement(slice []interface{}, index int) []interface{}

func RepeatBools added in v0.2.3

func RepeatBools(i bool, n int) []bool

func RepeatBytes added in v0.2.3

func RepeatBytes(b byte, n int) []byte

func RepeatInts added in v0.2.3

func RepeatInts(i int, n int) []int

func RepeatStrings added in v0.2.3

func RepeatStrings(s string, n int) []string

func StringsFilter added in v0.2.3

func StringsFilter(eles []string, filter func(string) bool) []string

func StringsFilterInplace added in v0.2.3

func StringsFilterInplace(eles []string, filter func(string) bool) []string

func StringsMap added in v0.2.3

func StringsMap(eles []string, mapper func(string) string) []string

func UintsFilter added in v0.2.3

func UintsFilter(eles []uint, filter func(uint) bool) []uint

func UintsFilterInplace added in v0.2.3

func UintsFilterInplace(eles []uint, filter func(uint) bool) []uint

func UintsMap added in v0.2.3

func UintsMap(eles []uint, mapper func(uint) uint) []uint

Types

type Nodes added in v0.2.3

type Nodes interface {
	sort.Interface
	IsSame(i, j int) bool
	Merge(dst, src int)
	Move(dst, src int)
}

Jump to

Keyboard shortcuts

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