numbers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(s, t []uint64) bool

func Uniq

func Uniq(list *[]uint64) *[]uint64

Uniq removes duplicated elements in the list, and returns a new one.

func UniqInplace

func UniqInplace(list *[]uint64)

UniqInplace is faster than Uniq for short slice (<1000).

Types

type Uint64Slice

type Uint64Slice []uint64

func (Uint64Slice) Len

func (s Uint64Slice) Len() int

func (Uint64Slice) Less

func (s Uint64Slice) Less(i, j int) bool

func (*Uint64Slice) Pop

func (s *Uint64Slice) Pop() interface{}

func (*Uint64Slice) Push

func (s *Uint64Slice) Push(x interface{})

func (Uint64Slice) Swap

func (s Uint64Slice) Swap(i, j int)

Jump to

Keyboard shortcuts

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