listutils

package
v0.0.0-...-a7715a5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntSliceToList

func IntSliceToList(s []int) *list.List

func ListEqual

func ListEqual(l, o *list.List) bool

func ListToIntSlice

func ListToIntSlice(l *list.List) []int

Types

type HashEq

type HashEq interface {
	Hash() uint64
	Equal(interface{}) bool
}

type HashEqOrderedInt

type HashEqOrderedInt int

func (HashEqOrderedInt) Compare

func (i HashEqOrderedInt) Compare(o interface{}) int

func (HashEqOrderedInt) Equal

func (i HashEqOrderedInt) Equal(o interface{}) bool

func (HashEqOrderedInt) Hash

func (i HashEqOrderedInt) Hash() uint64

func (HashEqOrderedInt) Int

func (i HashEqOrderedInt) Int() int

type Int

type Int interface {
	Int() int
}

type Ordered

type Ordered interface {
	Compare(interface{}) int
}

Jump to

Keyboard shortcuts

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