stream

package
v0.0.0-...-39567c2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum

func Sum[T constraints.Ordered](s Stream[T]) T

Types

type Stream

type Stream[T any] chan T

func Map

func Map[T, U any](s Stream[T], m func(T) U) Stream[U]

func (Stream[T]) Filter

func (s Stream[T]) Filter(filt func(T) bool) Stream[T]

Jump to

Keyboard shortcuts

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