Documentation
¶
Index ¶
- type Cmp
- type Equal
- type Slice
- func (s *Slice) AddSliceItem(item interface{}) []interface{}
- func (s *Slice) AddSliceSlice(slice []interface{}) []interface{}
- func (s *Slice) Del(val interface{})
- func (s *Slice) Get() []interface{}
- func (s *Slice) GetSliceCmp() Cmp
- func (s *Slice) Index(index int) interface{}
- func (s *Slice) Left() interface{}
- func (s *Slice) Len() int
- func (s *Slice) PopLeft() interface{}
- func (s *Slice) PopRight() interface{}
- func (s *Slice) Push(val interface{})
- func (s *Slice) Right() interface{}
- func (s *Slice) Set(slice []interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmp ¶
type Cmp func(a interface{}, b interface{}) int
Cmp function, a < b -> -1, a == b -> 0, a > b -> 1
type Equal ¶ added in v0.1.2
type Equal func(a interface{}, b interface{}) bool
Equal returns true if a and b are deemed the same, false otherwise
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
Slice is a sorted array
func (*Slice) AddSliceItem ¶
func (s *Slice) AddSliceItem(item interface{}) []interface{}
func (*Slice) AddSliceSlice ¶
func (s *Slice) AddSliceSlice(slice []interface{}) []interface{}
func (*Slice) GetSliceCmp ¶
Click to show internal directories.
Click to hide internal directories.