Documentation ¶
Index ¶
- func Channel[T any](iterator Iterator, constructor func() T) chan T
- func ChannelWithCancel[T any](iterator Iterator, constructor func() T, cancel <-chan bool) chan T
- func Map[In any, Out any](it Iterator, fn func(In) Out) []Out
- func Slice[T any](iterator Iterator, constructor func() T) []T
- type Iterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Channel ¶
Channel converts an Iterator into a channel of items. You must include a constructor function that generates fully initialized values of the type you want to return.
func ChannelWithCancel ¶
Channel converts an Iterator into a channel of items. You must include a constructor function that generates fully initialized values of the type you want to return.
Types ¶
Click to show internal directories.
Click to hide internal directories.