datastructures

package module
v0.0.0-...-c183f35 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: MIT Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparable

type Comparable interface {
	Compare(Comparable) int
}

Comparable represents a type which is comparable.

type Comparables

type Comparables []Comparable

Comparables represents []Comparable .

func (Comparables) Len

func (cs Comparables) Len() int

Len is to implements Sort.Interface .

func (Comparables) Less

func (cs Comparables) Less(i, j int) bool

Less is to implements Sort.Interface .

func (*Comparables) Shift

func (cs *Comparables) Shift() Comparable

Shift removes the fisrt element and returns it.

func (Comparables) Swap

func (cs Comparables) Swap(i, j int)

Swap is to implements Sort.Interface .

type IntComparable

type IntComparable int

IntComparable represents a comparable int.

func (IntComparable) Compare

func (ic IntComparable) Compare(i Comparable) int

Compare implements the Comparable interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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