package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 29, 2018
License: LGPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Cmp func(a interface{}, b interface{}) int
Cmp function, a < b -> -1, a == b -> 0, a > b -> 1
Slice is a sorted array
NewSlice return a new slice
func (s *Slice) Del(val interface{})
Del the given value
func (s *Slice) Index(index int) interface{}
Index return the value at the given value
func (s *Slice) Left() interface{}
Left return the min value, not pop out
Len return the length of slice
func (s *Slice) PopLeft() interface{}
PopLeft pop out the min value
func (s *Slice) PopRight() interface{}
PopRight pop out the max value
func (s *Slice) Push(val interface{})
Push a new value into slice
func (s *Slice) Right() interface{}
Right return the max value, not pop out
Source Files
¶
Click to show internal directories.
Click to hide internal directories.