xiter

package
v0.0.0-...-c3901be Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enumerate

func Enumerate[A any](s iter.Seq[A]) iter.Seq2[int, A]

func Filter

func Filter[A any](s iter.Seq[A], f func(A) bool) iter.Seq[A]

func Filter2

func Filter2[A, B any](s iter.Seq2[A, B], f func(A, B) bool) iter.Seq2[A, B]

func FoldL

func FoldL[A, B any](f func(B, A) B, s iter.Seq[A], z B) B

func FoldR

func FoldR[A, B any](f func(A, B) B, s iter.Seq[A], z B) B

func Left

func Left[A, B any](s iter.Seq2[A, B]) iter.Seq[A]

func Len

func Len[A any](s iter.Seq[A]) int

func Lift

func Lift[A, B any](s iter.Seq[A], f func(A) B) iter.Seq2[A, B]

func Project

func Project[A, B, C any](s iter.Seq2[A, B], f func(A, B) C) iter.Seq[C]

func Range

func Range[T constraints.Integer | constraints.Float](min, max, step T) iter.Seq[T]
func Right[A, B any](s iter.Seq2[A, B]) iter.Seq[B]

Types

This section is empty.

Jump to

Keyboard shortcuts

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