chain

package
v0.0.0-...-81dff9f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 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 Chain

type Chain[TInput, TOutput any] interface {
	Concat(iterator.Iterator[TInput]) Chain[TInput, TOutput]
	Enumerate(iterator.EnumerateFunc[TInput])
	Filter(iterator.FilterFunc[TInput]) Chain[TInput, TOutput]
	Find(iterator.FindFunc[TInput]) (*TInput, error)
	FlatMap(iterator.FlatMapFunc[TInput, TOutput]) Chain[TOutput, TOutput]
	ForEach(iterator.ForEachFunc[TInput])
	Map(iterator.MapFunc[TInput, TOutput]) Chain[TOutput, TOutput]
	Reduce(iterator.ReduceFunc[TInput, TOutput], TOutput) TOutput
	Take(int) Chain[TInput, TOutput]
	Value() iterator.Iterator[TInput]
}

Chain provides chainable versions of the iterator functions avaiable in the parent package

func From

func From[TInput, TOutput any](iter iterator.Iterator[TInput]) Chain[TInput, TOutput]

Jump to

Keyboard shortcuts

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