iteratoradapters

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDropN

func NewDropN[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], n int) compounditerators.ReadForIndexIterator[TKey, TValue]

func NewDropWhile

func NewDropWhile[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], unaryPredicate func(TValue) bool) compounditerators.ReadForIndexIterator[TKey, TValue]

func NewJoin

func NewJoin[TKey any, TValue any](originals ...ds.ReadForIndexIterator[TKey, TValue]) ds.ReadForIndexIterator[TKey, TValue]

func NewReplaceIf

func NewReplaceIf[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], unaryPredicate func(TValue) bool, replacement TValue) compounditerators.ReadForIndexIterator[TKey, TValue]

func NewStrided

func NewStrided[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], n int) compounditerators.ReadForIndexIterator[TKey, TValue]

TODO: Split the Size() method into separate interface

func NewTakeIf

func NewTakeIf[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], unaryPredicate func(TValue) bool) compounditerators.ReadForIndexIterator[TKey, TValue]

func NewTakeN

func NewTakeN[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], n int) compounditerators.ReadForIndexIterator[TKey, TValue]

func NewTakeWhile

func NewTakeWhile[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], unaryPredicate func(TValue) bool) compounditerators.ReadForIndexIterator[TKey, TValue]

func NewTransformIterator

func NewTransformIterator[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], transformer func(TValue) (TValue, error)) compounditerators.ReadForIndexIterator[TKey, TValue]

func NewTransformUnsafeIterator

func NewTransformUnsafeIterator[TKey any, TValue any](inner compounditerators.ReadForIndexIterator[TKey, TValue], transformer func(TValue) TValue) compounditerators.ReadForIndexIterator[TKey, TValue]

Types

type DropN

type DropN[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*DropN[TKey, TValue]) Get

func (it *DropN[TKey, TValue]) Get() (value TValue, found bool)

func (*DropN[TKey, TValue]) Index

func (it *DropN[TKey, TValue]) Index() (int, bool)

func (*DropN[TKey, TValue]) IsBegin

func (it *DropN[TKey, TValue]) IsBegin() bool

func (*DropN[TKey, TValue]) IsEnd

func (it *DropN[TKey, TValue]) IsEnd() bool

func (*DropN[TKey, TValue]) IsFirst

func (it *DropN[TKey, TValue]) IsFirst() bool

func (*DropN[TKey, TValue]) IsLast

func (it *DropN[TKey, TValue]) IsLast() bool

func (*DropN[TKey, TValue]) IsValid

func (it *DropN[TKey, TValue]) IsValid() bool

func (*DropN[TKey, TValue]) Next

func (it *DropN[TKey, TValue]) Next() bool

func (*DropN[TKey, TValue]) NextN

func (it *DropN[TKey, TValue]) NextN(n int) bool

func (*DropN[TKey, TValue]) Size

func (it *DropN[TKey, TValue]) Size() int

type DropWhile

type DropWhile[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*DropWhile[TKey, TValue]) Get

func (it *DropWhile[TKey, TValue]) Get() (value TValue, found bool)

func (*DropWhile[TKey, TValue]) Index

func (it *DropWhile[TKey, TValue]) Index() (int, bool)

func (*DropWhile[TKey, TValue]) IsBegin

func (it *DropWhile[TKey, TValue]) IsBegin() bool

func (*DropWhile[TKey, TValue]) IsEnd

func (it *DropWhile[TKey, TValue]) IsEnd() bool

func (*DropWhile[TKey, TValue]) IsFirst

func (it *DropWhile[TKey, TValue]) IsFirst() bool

func (*DropWhile[TKey, TValue]) IsLast

func (it *DropWhile[TKey, TValue]) IsLast() bool

func (*DropWhile[TKey, TValue]) IsValid

func (it *DropWhile[TKey, TValue]) IsValid() bool

func (*DropWhile[TKey, TValue]) Next

func (it *DropWhile[TKey, TValue]) Next() bool

func (*DropWhile[TKey, TValue]) NextN

func (it *DropWhile[TKey, TValue]) NextN(n int) bool

func (*DropWhile[TKey, TValue]) Size

func (it *DropWhile[TKey, TValue]) Size() int

type Join

type Join[TKey any, TValue any] struct {
	// contains filtered or unexported fields
}

func (*Join[TKey, TValue]) Get

func (it *Join[TKey, TValue]) Get() (value TValue, found bool)

func (*Join[TKey, TValue]) GetKey

func (it *Join[TKey, TValue]) GetKey() (TKey, bool)

func (*Join[TKey, TValue]) Index

func (it *Join[TKey, TValue]) Index() (int, bool)

func (*Join[TKey, TValue]) IsBegin

func (it *Join[TKey, TValue]) IsBegin() bool

func (*Join[TKey, TValue]) IsEnd

func (it *Join[TKey, TValue]) IsEnd() bool

func (*Join[TKey, TValue]) IsFirst

func (it *Join[TKey, TValue]) IsFirst() bool

func (*Join[TKey, TValue]) IsLast

func (it *Join[TKey, TValue]) IsLast() bool

func (*Join[TKey, TValue]) IsValid

func (it *Join[TKey, TValue]) IsValid() bool

func (*Join[TKey, TValue]) Next

func (it *Join[TKey, TValue]) Next() bool

func (*Join[TKey, TValue]) NextN

func (it *Join[TKey, TValue]) NextN(n int) bool

func (*Join[TKey, TValue]) Size

func (it *Join[TKey, TValue]) Size() int

type ReplaceIf

type ReplaceIf[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*ReplaceIf[TKey, TValue]) Get

func (it *ReplaceIf[TKey, TValue]) Get() (value TValue, found bool)

func (*ReplaceIf[TKey, TValue]) Index

func (it *ReplaceIf[TKey, TValue]) Index() (int, bool)

func (*ReplaceIf[TKey, TValue]) IsBegin

func (it *ReplaceIf[TKey, TValue]) IsBegin() bool

func (*ReplaceIf[TKey, TValue]) IsEnd

func (it *ReplaceIf[TKey, TValue]) IsEnd() bool

func (*ReplaceIf[TKey, TValue]) IsFirst

func (it *ReplaceIf[TKey, TValue]) IsFirst() bool

func (*ReplaceIf[TKey, TValue]) IsLast

func (it *ReplaceIf[TKey, TValue]) IsLast() bool

func (*ReplaceIf[TKey, TValue]) IsValid

func (it *ReplaceIf[TKey, TValue]) IsValid() bool

func (*ReplaceIf[TKey, TValue]) Next

func (it *ReplaceIf[TKey, TValue]) Next() bool

func (*ReplaceIf[TKey, TValue]) NextN

func (it *ReplaceIf[TKey, TValue]) NextN(n int) bool

func (*ReplaceIf[TKey, TValue]) Size

func (it *ReplaceIf[TKey, TValue]) Size() int

type Strided

type Strided[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*Strided[TKey, TValue]) Get

func (it *Strided[TKey, TValue]) Get() (value TValue, found bool)

func (*Strided[TKey, TValue]) Index

func (it *Strided[TKey, TValue]) Index() (int, bool)

func (*Strided[TKey, TValue]) IsBegin

func (it *Strided[TKey, TValue]) IsBegin() bool

func (*Strided[TKey, TValue]) IsEnd

func (it *Strided[TKey, TValue]) IsEnd() bool

func (*Strided[TKey, TValue]) IsFirst

func (it *Strided[TKey, TValue]) IsFirst() bool

func (*Strided[TKey, TValue]) IsLast

func (it *Strided[TKey, TValue]) IsLast() bool

func (*Strided[TKey, TValue]) IsValid

func (it *Strided[TKey, TValue]) IsValid() bool

func (*Strided[TKey, TValue]) Next

func (it *Strided[TKey, TValue]) Next() bool

func (*Strided[TKey, TValue]) NextN

func (it *Strided[TKey, TValue]) NextN(n int) bool

func (*Strided[TKey, TValue]) Size

func (it *Strided[TKey, TValue]) Size() int

type TakeIf

type TakeIf[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*TakeIf[TKey, TValue]) Get

func (it *TakeIf[TKey, TValue]) Get() (value TValue, found bool)

func (*TakeIf[TKey, TValue]) Index

func (it *TakeIf[TKey, TValue]) Index() (int, bool)

func (*TakeIf[TKey, TValue]) IsBegin

func (it *TakeIf[TKey, TValue]) IsBegin() bool

func (*TakeIf[TKey, TValue]) IsEnd

func (it *TakeIf[TKey, TValue]) IsEnd() bool

func (*TakeIf[TKey, TValue]) IsFirst

func (it *TakeIf[TKey, TValue]) IsFirst() bool

func (*TakeIf[TKey, TValue]) IsLast

func (it *TakeIf[TKey, TValue]) IsLast() bool

func (*TakeIf[TKey, TValue]) IsValid

func (it *TakeIf[TKey, TValue]) IsValid() bool

func (*TakeIf[TKey, TValue]) Next

func (it *TakeIf[TKey, TValue]) Next() bool

func (*TakeIf[TKey, TValue]) NextN

func (it *TakeIf[TKey, TValue]) NextN(n int) bool

func (*TakeIf[TKey, TValue]) Size

func (it *TakeIf[TKey, TValue]) Size() int

type TakeN

type TakeN[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*TakeN[TKey, TValue]) Get

func (it *TakeN[TKey, TValue]) Get() (value TValue, found bool)

func (*TakeN[TKey, TValue]) Index

func (it *TakeN[TKey, TValue]) Index() (int, bool)

func (*TakeN[TKey, TValue]) IsBegin

func (it *TakeN[TKey, TValue]) IsBegin() bool

func (*TakeN[TKey, TValue]) IsEnd

func (it *TakeN[TKey, TValue]) IsEnd() bool

func (*TakeN[TKey, TValue]) IsFirst

func (it *TakeN[TKey, TValue]) IsFirst() bool

func (*TakeN[TKey, TValue]) IsLast

func (it *TakeN[TKey, TValue]) IsLast() bool

func (*TakeN[TKey, TValue]) IsValid

func (it *TakeN[TKey, TValue]) IsValid() bool

func (*TakeN[TKey, TValue]) Next

func (it *TakeN[TKey, TValue]) Next() bool

func (*TakeN[TKey, TValue]) NextN

func (it *TakeN[TKey, TValue]) NextN(n int) bool

func (*TakeN[TKey, TValue]) Size

func (it *TakeN[TKey, TValue]) Size() int

type TakeWhile

type TakeWhile[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*TakeWhile[TKey, TValue]) Get

func (it *TakeWhile[TKey, TValue]) Get() (value TValue, found bool)

func (*TakeWhile[TKey, TValue]) Index

func (it *TakeWhile[TKey, TValue]) Index() (int, bool)

func (*TakeWhile[TKey, TValue]) IsBegin

func (it *TakeWhile[TKey, TValue]) IsBegin() bool

func (*TakeWhile[TKey, TValue]) IsEnd

func (it *TakeWhile[TKey, TValue]) IsEnd() bool

func (*TakeWhile[TKey, TValue]) IsFirst

func (it *TakeWhile[TKey, TValue]) IsFirst() bool

func (*TakeWhile[TKey, TValue]) IsLast

func (it *TakeWhile[TKey, TValue]) IsLast() bool

func (*TakeWhile[TKey, TValue]) IsValid

func (it *TakeWhile[TKey, TValue]) IsValid() bool

func (*TakeWhile[TKey, TValue]) Next

func (it *TakeWhile[TKey, TValue]) Next() bool

func (*TakeWhile[TKey, TValue]) NextN

func (it *TakeWhile[TKey, TValue]) NextN(n int) bool

func (*TakeWhile[TKey, TValue]) Size

func (it *TakeWhile[TKey, TValue]) Size() int

type Transform

type Transform[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*Transform[TKey, TValue]) Get

func (it *Transform[TKey, TValue]) Get() (value TValue, found bool)

func (*Transform[TKey, TValue]) Index

func (it *Transform[TKey, TValue]) Index() (int, bool)

func (*Transform[TKey, TValue]) IsBegin

func (it *Transform[TKey, TValue]) IsBegin() bool

func (*Transform[TKey, TValue]) IsEnd

func (it *Transform[TKey, TValue]) IsEnd() bool

func (*Transform[TKey, TValue]) IsFirst

func (it *Transform[TKey, TValue]) IsFirst() bool

func (*Transform[TKey, TValue]) IsLast

func (it *Transform[TKey, TValue]) IsLast() bool

func (*Transform[TKey, TValue]) IsValid

func (it *Transform[TKey, TValue]) IsValid() bool

func (*Transform[TKey, TValue]) Next

func (it *Transform[TKey, TValue]) Next() bool

func (*Transform[TKey, TValue]) NextN

func (it *Transform[TKey, TValue]) NextN(n int) bool

func (*Transform[TKey, TValue]) Size

func (it *Transform[TKey, TValue]) Size() int

type TransformUnsafe

type TransformUnsafe[TKey any, TValue any] struct {
	compounditerators.ReadForIndexIterator[TKey, TValue]
	// contains filtered or unexported fields
}

func (*TransformUnsafe[TKey, TValue]) Get

func (it *TransformUnsafe[TKey, TValue]) Get() (value TValue, found bool)

func (*TransformUnsafe[TKey, TValue]) Index

func (it *TransformUnsafe[TKey, TValue]) Index() (int, bool)

func (*TransformUnsafe[TKey, TValue]) IsBegin

func (it *TransformUnsafe[TKey, TValue]) IsBegin() bool

func (*TransformUnsafe[TKey, TValue]) IsEnd

func (it *TransformUnsafe[TKey, TValue]) IsEnd() bool

func (*TransformUnsafe[TKey, TValue]) IsFirst

func (it *TransformUnsafe[TKey, TValue]) IsFirst() bool

func (*TransformUnsafe[TKey, TValue]) IsLast

func (it *TransformUnsafe[TKey, TValue]) IsLast() bool

func (*TransformUnsafe[TKey, TValue]) IsValid

func (it *TransformUnsafe[TKey, TValue]) IsValid() bool

func (*TransformUnsafe[TKey, TValue]) Next

func (it *TransformUnsafe[TKey, TValue]) Next() bool

func (*TransformUnsafe[TKey, TValue]) NextN

func (it *TransformUnsafe[TKey, TValue]) NextN(n int) bool

func (*TransformUnsafe[TKey, TValue]) Size

func (it *TransformUnsafe[TKey, TValue]) Size() int

Jump to

Keyboard shortcuts

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