basic

package
v3.0.0-...-55e877b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(v int) int

func Ceil

func Ceil(numerator, denominator int) int

func Max

func Max(x, y int) int

func Min

func Min(x, y int) int

func Sign

func Sign(v float32) float32

Types

type IntSlice

type IntSlice []int

func NewIntSlice

func NewIntSlice(i int) *IntSlice

func (*IntSlice) Add

func (_da *IntSlice) Add(v int) error

func (*IntSlice) Copy

func (_dgc *IntSlice) Copy() *IntSlice

func (IntSlice) Get

func (_ce IntSlice) Get(index int) (int, error)

func (IntSlice) Size

func (_ga IntSlice) Size() int

type IntsMap

type IntsMap map[uint64][]int

func (IntsMap) Add

func (_f IntsMap) Add(key uint64, value int)

func (IntsMap) Delete

func (_be IntsMap) Delete(key uint64)

func (IntsMap) Get

func (_b IntsMap) Get(key uint64) (int, bool)

func (IntsMap) GetSlice

func (_g IntsMap) GetSlice(key uint64) ([]int, bool)

type NumSlice

type NumSlice []float32

func NewNumSlice

func NewNumSlice(i int) *NumSlice

func (*NumSlice) Add

func (_ea *NumSlice) Add(v float32)

func (*NumSlice) AddInt

func (_fc *NumSlice) AddInt(v int)

func (NumSlice) Get

func (_fcd NumSlice) Get(i int) (float32, error)

func (NumSlice) GetInt

func (_cc NumSlice) GetInt(i int) (int, error)

func (NumSlice) GetIntSlice

func (_cg NumSlice) GetIntSlice() []int

type Stack

type Stack struct {
	Data []interface{}
	Aux  *Stack
}

func (*Stack) Len

func (_gcg *Stack) Len() int

func (*Stack) Peek

func (_eb *Stack) Peek() (_fg interface{}, _gg bool)

func (*Stack) Pop

func (_dc *Stack) Pop() (_ff interface{}, _df bool)

func (*Stack) Push

func (_gad *Stack) Push(v interface{})

Jump to

Keyboard shortcuts

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