st

package
v0.0.0-...-37beb7e Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SliceTuple

type SliceTuple struct {
	Tuples []*Tuple
	// contains filtered or unexported fields
}

func FromFloats

func FromFloats(c int, data ...float64) *SliceTuple

func FromInts

func FromInts(c int, data ...int) *SliceTuple

func FromStrings

func FromStrings(c int, data ...string) *SliceTuple

func NewSliceTuple

func NewSliceTuple(ts ...*Tuple) *SliceTuple

func (*SliceTuple) Append

func (st *SliceTuple) Append(ts ...*Tuple)

func (*SliceTuple) Copy

func (st *SliceTuple) Copy() *SliceTuple

func (*SliceTuple) CopySlice

func (st *SliceTuple) CopySlice() *SliceTuple

func (*SliceTuple) First

func (st *SliceTuple) First() *Tuple

func (*SliceTuple) Get

func (st *SliceTuple) Get(i int) *Tuple

func (*SliceTuple) HeapFix

func (st *SliceTuple) HeapFix(i int)

func (*SliceTuple) HeapInit

func (st *SliceTuple) HeapInit()

func (*SliceTuple) HeapPop

func (st *SliceTuple) HeapPop() *Tuple

func (*SliceTuple) HeapPush

func (st *SliceTuple) HeapPush(t *Tuple)

func (*SliceTuple) Insert

func (st *SliceTuple) Insert(i int, ts ...*Tuple)

func (*SliceTuple) Last

func (st *SliceTuple) Last() *Tuple

func (*SliceTuple) Len

func (st *SliceTuple) Len() int

func (*SliceTuple) Less

func (st *SliceTuple) Less(i, j int) bool

func (*SliceTuple) Pop

func (st *SliceTuple) Pop() interface{}

func (*SliceTuple) PostfixFloatConst

func (st *SliceTuple) PostfixFloatConst(cs ...float64)

func (*SliceTuple) PostfixIntConst

func (st *SliceTuple) PostfixIntConst(cs ...int)

func (*SliceTuple) PostfixIntIndex

func (st *SliceTuple) PostfixIntIndex()

func (*SliceTuple) PostfixStringConst

func (st *SliceTuple) PostfixStringConst(cs ...string)

func (*SliceTuple) PrefixFloatConst

func (st *SliceTuple) PrefixFloatConst(cs ...float64)

func (*SliceTuple) PrefixIntConst

func (st *SliceTuple) PrefixIntConst(cs ...int)

func (*SliceTuple) PrefixIntIndex

func (st *SliceTuple) PrefixIntIndex()

func (*SliceTuple) PrefixStringConst

func (st *SliceTuple) PrefixStringConst(cs ...string)

func (*SliceTuple) Prepend

func (st *SliceTuple) Prepend(ts ...*Tuple)

func (*SliceTuple) Push

func (st *SliceTuple) Push(x interface{})

func (*SliceTuple) Remove

func (st *SliceTuple) Remove(i int) *Tuple

func (*SliceTuple) RemoveFirst

func (st *SliceTuple) RemoveFirst() *Tuple

func (*SliceTuple) RemoveLast

func (st *SliceTuple) RemoveLast() *Tuple

func (*SliceTuple) Reverse

func (st *SliceTuple) Reverse()

func (*SliceTuple) Sort

func (st *SliceTuple) Sort()

func (*SliceTuple) SortOrder

func (st *SliceTuple) SortOrder(ss ...Sorter)

func (*SliceTuple) Swap

func (st *SliceTuple) Swap(i, j int)

type Sorter

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

func FloatAsc

func FloatAsc(c int) Sorter

func FloatDesc

func FloatDesc(c int) Sorter

func IntAsc

func IntAsc(c int) Sorter

func IntDesc

func IntDesc(c int) Sorter

func StringAsc

func StringAsc(c int) Sorter

func StringDesc

func StringDesc(c int) Sorter

type Tuple

type Tuple struct {
	Ints    []int
	Floats  []float64
	Strings []string
}

func FloatTuple

func FloatTuple(floats ...float64) *Tuple

func IntTuple

func IntTuple(ints ...int) *Tuple

func StringTuple

func StringTuple(strings ...string) *Tuple

func (*Tuple) Copy

func (t *Tuple) Copy() *Tuple

func (Tuple) String

func (t Tuple) String() string

type Type

type Type int
const (
	Int Type = iota
	Float
	String
)

Jump to

Keyboard shortcuts

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