util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(vs []interface{}, f func(interface{}) interface{}) []interface{}

Collect object from slice by given collection function

func Find

func Find(slice interface{}, f func(value interface{}) bool) int

Find an object from a slice with given selector function

func FindMinMax

func FindMinMax(a ...interface{}) (interface{}, interface{})

Find min and max values from given values

func Sum

func Sum(vs []interface{}) interface{}

Calculate sum for the whole slice values

Types

This section is empty.

Jump to

Keyboard shortcuts

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