Documentation
¶
Index ¶
- func Author() string
- func CheckIsFunc(fn interface{}, n ...int) error
- func Chunk(v interface{}, size int) interface{}
- func Concat(v interface{}) interface{}
- func Different(x, y interface{}) interface{}
- func Fill(v interface{}, count int) interface{}
- func Filter(v interface{}, fn interface{}) interface{}
- func Intersect(x, y interface{}) interface{}
- func IsSlice(v interface{}) bool
- func IsUnique(v interface{}) bool
- func License() string
- func Map(v interface{}, fn interface{}) interface{}
- func Merge(x, y interface{}) interface{}
- func Reduce(v interface{}, fn interface{}) interface{}
- func Reverse(v interface{})
- func Shuffle(v interface{})
- func Unique(v interface{}) interface{}
- func Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsFunc ¶ added in v0.21.7
CheckIsFunc check if fn is a function with n[0] arguments and n[1] returns
func Chunk ¶ added in v0.21.9
func Chunk(v interface{}, size int) interface{}
Chunk split slice into chunks
func Concat ¶ added in v0.21.9
func Concat(v interface{}) interface{}
Concat returns a new flatten slice of []slice
func Different ¶ added in v0.21.4
func Different(x, y interface{}) interface{}
Different returns values in x but not in y
func Fill ¶ added in v0.21.6
func Fill(v interface{}, count int) interface{}
Fill returns a slice with count number of v values
func Filter ¶ added in v0.21.7
func Filter(v interface{}, fn interface{}) interface{}
Filter filter slice values using callback function fn
func Intersect ¶ added in v0.21.4
func Intersect(x, y interface{}) interface{}
Intersect returns values in both slices
func IsSlice ¶ added in v0.21.5
func IsSlice(v interface{}) bool
IsSlice returns whether value is slice
func IsUnique ¶ added in v0.21.3
func IsUnique(v interface{}) bool
IsUnique returns whether slice values is unique
func Map ¶ added in v0.21.8
func Map(v interface{}, fn interface{}) interface{}
Map apply callback function fn to elements of slice
func Merge ¶ added in v0.21.4
func Merge(x, y interface{}) interface{}
Merge append y values to x if not exists in
func Reduce ¶ added in v0.21.8
func Reduce(v interface{}, fn interface{}) interface{}
Reduce reduce the slice values using callback function fn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.