functional

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilIteratorValue = struct{}{}
View Source
var PackageProps = packageprops.Props{
	WASMWASI:         packageprops.WASMCompiles,
	WASMJS:           packageprops.WASMCompiles,
	WASMFreestanding: packageprops.WASMCompiles,
}

PackageProps records this package's curated properties (ADR-0080). Seeded by `wasmsurvey props generate`; curate by hand, then `wasmsurvey props verify`.

Functions

func AppendSeqIter2

func AppendSeqIter2[K any, V any](ks []K, vs []V, it iter.Seq2[K, V]) (ksOut []K, vsOut []V)

func ConsumeIterator

func ConsumeIterator[T any](it iter.Seq[T])

func ConsumeIterator2

func ConsumeIterator2[K, V any](it iter.Seq2[K, V])

func IterInterchanged

func IterInterchanged[L, R any](seq iter.Seq2[L, R]) iter.Seq2[R, L]

func IterLeftOnly

func IterLeftOnly[L, R any](seq iter.Seq2[L, R]) iter.Seq[L]

func IterRightOnly

func IterRightOnly[L, R any](seq iter.Seq2[L, R]) iter.Seq[R]

func MakeIter2FromAlternatedValue

func MakeIter2FromAlternatedValue[T any](alternatedValues ...T) iter.Seq2[T, T]

func MakeIter2FromIter1

func MakeIter2FromIter1[K, V any](iter1 iter.Seq[V], k K) iter.Seq2[K, V]

func MakeIter2FromIter1Func

func MakeIter2FromIter1Func[K, V any](iter1 iter.Seq[V], f func(v V) (k K)) iter.Seq2[K, V]

func MakeIter2FromIter1Indexed

func MakeIter2FromIter1Indexed[V any](iter1 iter.Seq[V]) iter.Seq2[int, V]

func MakeSingleValueIterator1

func MakeSingleValueIterator1[T any](val T) iter.Seq[T]

func MakeSingleValueIterator2

func MakeSingleValueIterator2[K, V any](key K, val V) iter.Seq2[K, V]

func TranslateEmpty

func TranslateEmpty[T comparable](s T, replacement T) (r T)

TranslateEmpty returns replacement when s is the empty value (type-specific), otherwise s.

Types

type InterfaceIsReferentialTransparentType

type InterfaceIsReferentialTransparentType bool

type NilIteratorValueType

type NilIteratorValueType struct{}

type PromiseReferentialTransparentI

type PromiseReferentialTransparentI interface {
	PromiseToBeReferentialTransparent() (_ InterfaceIsReferentialTransparentType)
}

Directories

Path Synopsis
Package option provides a typed Some/None carrier for fields that may be present or absent.
Package option provides a typed Some/None carrier for fields that may be present or absent.

Jump to

Keyboard shortcuts

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