util

package
v0.0.0-...-36d9f8f Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(value int) int

func Max

func Max(values ...int) int

func Min

func Min(values ...int) int

func SumFloat

func SumFloat(values ...float64) float64

func SumInt

func SumInt(values ...int) int

Types

type CircularIntList

type CircularIntList struct {
	CircularList
}

func (*CircularIntList) Add

func (cl *CircularIntList) Add(i int)

func (*CircularIntList) Iterate

func (cl *CircularIntList) Iterate(cb IntListCallback)

func (*CircularIntList) Next

func (cl *CircularIntList) Next() int

func (*CircularIntList) Peek

func (cl *CircularIntList) Peek() int

func (*CircularIntList) PeekN

func (cl *CircularIntList) PeekN(n int) int

type CircularList

type CircularList struct {
	// contains filtered or unexported fields
}

func (*CircularList) Add

func (cl *CircularList) Add(v ListValue)

func (*CircularList) Iterate

func (cl *CircularList) Iterate(callback ListCallback)

func (*CircularList) Next

func (cl *CircularList) Next() ListValue

func (*CircularList) Peek

func (cl *CircularList) Peek() ListValue

func (*CircularList) PeekN

func (cl *CircularList) PeekN(n int) ListValue

type IntListCallback

type IntListCallback func(int)

type ListCallback

type ListCallback func(ListValue)

type ListValue

type ListValue interface{}

Jump to

Keyboard shortcuts

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