chain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcatChain

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

func NewConcatChain

func NewConcatChain(iters ...types.Iterator) *ConcatChain

func (*ConcatChain) Next

func (it *ConcatChain) Next() (any, bool)

type EmptyIterator

type EmptyIterator struct {
}

func (*EmptyIterator) Next

func (it *EmptyIterator) Next() (any, bool)

type Enumerate

type Enumerate struct {
	Index int
	Value any
}

type EnumerateChain

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

func NewEnumerateChain

func NewEnumerateChain(iter types.Iterator) *EnumerateChain

func (*EnumerateChain) Next

func (it *EnumerateChain) Next() (any, bool)

type FilterChain

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

func NewFilterChain

func NewFilterChain(iter types.Iterator, fn func(any) bool) *FilterChain

func (*FilterChain) Next

func (it *FilterChain) Next() (any, bool)

type IntersperseWithChain

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

func NewIntersperseChain

func NewIntersperseChain(iter types.Iterator, separator any) *IntersperseWithChain

func NewIntersperseWithChain

func NewIntersperseWithChain(iter types.Iterator, separator func() any) *IntersperseWithChain

func (*IntersperseWithChain) Next

func (it *IntersperseWithChain) Next() (any, bool)

type MapChain

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

func NewInspectChain

func NewInspectChain(iter types.Iterator, fn func(any)) *MapChain

func NewMapChain

func NewMapChain(iter types.Iterator, fn func(any) any) *MapChain

func (*MapChain) Next

func (it *MapChain) Next() (any, bool)

type Peeker

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

func NewPeeker

func NewPeeker(iter types.Iterator) Peeker

func (*Peeker) Next

func (it *Peeker) Next() (any, bool)

func (*Peeker) Peek

func (it *Peeker) Peek() (any, bool)

type ScanChain

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

func NewScanChain

func NewScanChain(iter types.Iterator, base any, fn func(any, any) any) *ScanChain

func (*ScanChain) Next

func (it *ScanChain) Next() (any, bool)

type SkipChain

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

func NewSkipChain

func NewSkipChain(iter types.Iterator, n uint) *SkipChain

func (*SkipChain) Next

func (it *SkipChain) Next() (any, bool)

type StepChain

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

func NewStepChain

func NewStepChain(iter types.Iterator, step uint) *StepChain

func (*StepChain) Next

func (it *StepChain) Next() (any, bool)

type TakeChain

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

func NewTakeChain

func NewTakeChain(it types.Iterator, count int) *TakeChain

func (*TakeChain) Next

func (it *TakeChain) Next() (any, bool)

Jump to

Keyboard shortcuts

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