Documentation
¶
Index ¶
- func All(slice interface{}) bool
- func AllFunc(function, slice interface{}) bool
- func AllFuncSafe(function, slice interface{}) (result bool, err error)
- func AllSafe(slice interface{}) (result bool, err error)
- func Any(slice interface{}) bool
- func AnyFunc(function, slice interface{}) bool
- func AnyFuncSafe(function, slice interface{}) (result bool, err error)
- func AnySafe(slice interface{}) (result bool, err error)
- func Apply(function, slice interface{}) interface{}
- func ApplySafe(function, slice interface{}) (result interface{}, err error)
- func Avg(slice interface{}) float64
- func AvgSafe(slice interface{}) (result float64, err error)
- func Cmp(a, b interface{}) int8
- func CmpSafe(a, b interface{}) (result int8, err error)
- func Compose(functions ...interface{}) func(...interface{}) interface{}
- func ComposeSafe(functions ...interface{}) (result func(...interface{}) interface{}, err error)
- func Filter(slice interface{}) interface{}
- func FilterFunc(function, slice interface{}) interface{}
- func FilterFuncSafe(function, slice interface{}) (result interface{}, err error)
- func FilterSafe(slice interface{}) (result interface{}, err error)
- func Map(function, slice interface{}) interface{}
- func MapSafe(function, slice interface{}) (result interface{}, err error)
- func Max(slice interface{}) interface{}
- func MaxSafe(slice interface{}) (result interface{}, err error)
- func Min(slice interface{}) interface{}
- func MinSafe(slice interface{}) (result interface{}, err error)
- func Partial(function interface{}, args ...interface{}) func(...interface{}) interface{}
- func PartialSafe(function interface{}, args ...interface{}) (result func(...interface{}) interface{}, err error)
- func Reduce(function, slice, acc interface{}) interface{}
- func ReduceSafe(function, slice, acc interface{}) (result interface{}, err error)
- func Sum(slice interface{}) interface{}
- func SumSafe(slice interface{}) (result interface{}, err error)
- func ToBool(value interface{}) bool
- func ToBoolSafe(value interface{}) (result bool, err error)
- func Zip(slices ...interface{}) interface{}
- func ZipSafe(slices ...interface{}) (result interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFuncSafe ¶
func AnyFuncSafe ¶
func Apply ¶
func Apply(function, slice interface{}) interface{}
'Map' applies 'func' to every item of iterable 'slice' and return a slice of the results. Function allowes slices and arrays.
Map(func, slice) slice MapSafe(func, slice) (slice, err)
func ComposeSafe ¶
func ComposeSafe(functions ...interface{}) (result func(...interface{}) interface{}, err error)
func FilterFunc ¶
func FilterFunc(function, slice interface{}) interface{}
func FilterFuncSafe ¶
func FilterFuncSafe(function, slice interface{}) (result interface{}, err error)
func FilterSafe ¶
func FilterSafe(slice interface{}) (result interface{}, err error)
func Partial ¶
func Partial(function interface{}, args ...interface{}) func(...interface{}) interface{}
func PartialSafe ¶
func PartialSafe(function interface{}, args ...interface{}) (result func(...interface{}) interface{}, err error)
func ReduceSafe ¶
func ReduceSafe(function, slice, acc interface{}) (result interface{}, err error)
func ToBoolSafe ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.