iter

package
v0.0.0-...-b6e66c0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat[V any](seqs iter.Seq[iter.Seq[V]]) iter.Seq[V]

func Cycle

func Cycle[V any](seq iter.Seq[V]) iter.Seq[V]

CAUTION: `seq` can't be a single-use iterator nor empty.

func Drop

func Drop[V any](seq iter.Seq[V], n int) iter.Seq[V]

func Empty

func Empty[V any]() iter.Seq[V]

func Map

func Map[V1 any, V2 any](seq iter.Seq[V1], f func(V1) V2) iter.Seq[V2]

func Repeat

func Repeat[V any](v V) iter.Seq[V]

func Seq2FromSeq

func Seq2FromSeq[K any, V any](seq iter.Seq[tuple.KeyValuePair[K, V]]) iter.Seq2[K, V]

func SeqFromSeq2

func SeqFromSeq2[K any, V any](seq2 iter.Seq2[K, V]) iter.Seq[tuple.KeyValuePair[K, V]]

func Singleton

func Singleton[V any](v V) iter.Seq[V]

func Take

func Take[V any](seq iter.Seq[V], n int) iter.Seq[V]

Types

This section is empty.

Jump to

Keyboard shortcuts

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