sInts

package
v0.1.84 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareSlices added in v0.1.53

func CompareSlices(s1, s2 []int) bool

func DeflateFloat64 added in v0.1.25

func DeflateFloat64(v int64, prec int) float64

func Get

func Get(str string) int

func Get64

func Get64(str string) int64

func InflateFloat64 added in v0.1.25

func InflateFloat64(v float64, prec int) int64

func Sum added in v0.1.34

func Sum(values []int) int

func SumSlice added in v0.1.53

func SumSlice(s []int) int

func ToString added in v0.1.1

func ToString(v int64) string

Types

type InterIter added in v0.1.21

type InterIter interface {
	dIter.Inter

	Value() int64
	Count() int
	Reset()

	Clone() InterIter
}

type Iter added in v0.1.10

type Iter struct {
	dIter.Inter
	// contains filtered or unexported fields
}

func NewIter added in v0.1.21

func NewIter(from, to, step int64, values ...int64) *Iter

func (*Iter) Clone added in v0.1.40

func (b *Iter) Clone() InterIter

func (*Iter) Count added in v0.1.10

func (b *Iter) Count() int

func (*Iter) Log added in v0.1.21

func (b *Iter) Log(name string)

func (*Iter) Next added in v0.1.21

func (b *Iter) Next() bool

func (*Iter) Reset added in v0.1.10

func (b *Iter) Reset()

func (*Iter) String added in v0.1.21

func (b *Iter) String(name string) string

func (*Iter) Value added in v0.1.10

func (b *Iter) Value() int64

type Json added in v0.1.51

type Json struct {
	From   int64   `json:"from"`
	To     int64   `json:"to"`
	Step   int64   `json:"step"`
	Values []int64 `json:"values"`
}

func (Json) GetIter added in v0.1.51

func (jn Json) GetIter() *Iter

func (Json) IsZero added in v0.1.51

func (jn Json) IsZero() bool

Jump to

Keyboard shortcuts

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