cannibox

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

# cannibox

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(length int, f func(i int) bool, do func(i int), fs ...filterOptionsFunc)

func FiltersD

func FiltersD(length int, fs []func(int) bool, do func(int, int), shouldReturn bool)

func FiltersF

func FiltersF(length int, fs []func(i int) bool, do func(i, j int), shouldReturn bool)

func Have

func Have(length int, f func(i int) bool) bool

func Iterator

func Iterator(lenght, limit int, do func(int, int) error) error

func Loop

func Loop(offset, limit int, do func(int, int) (int, error)) error

func SearchIndex

func SearchIndex(length int, isFound func(int) bool) int

func SearchIndexNoFound

func SearchIndexNoFound(result int) bool

func ToFuncIs

func ToFuncIs(length int, do func(int) func(int) bool) []func(i int) bool

Types

type Int64Iterator

type Int64Iterator struct {
	// contains filtered or unexported fields
}

func NewInt64Iterator

func NewInt64Iterator(src []int64, limit int) *Int64Iterator

func (*Int64Iterator) HasNext

func (i *Int64Iterator) HasNext() bool

func (*Int64Iterator) Next

func (i *Int64Iterator) Next() []int64

Jump to

Keyboard shortcuts

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