adapter

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat added in v0.0.19

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

func Concat2 added in v0.0.19

func Concat2[K, V any](seqs ...iter.Seq2[K, V]) iter.Seq2[K, V]

func Filter2

func Filter2[K, V any](f func(K, V) bool, seq iter.Seq2[K, V]) iter.Seq2[K, V]

func Map

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

func Map2

func Map2[K1, K2, V1, V2 any](fn func(K1, V1) (K2, V2), seq iter.Seq2[K1, V1]) iter.Seq2[K2, V2]

func MergeFunc added in v0.0.19

func MergeFunc[V any](x, y iter.Seq[V], f func(V, V) int) iter.Seq[V]

func Reduce

func Reduce[Sum, V any](reducer func(Sum, V) Sum, initial Sum, seq iter.Seq[V]) Sum

reduce is redefined to avoid xiter dependency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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