functional

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilIteratorValue = struct{}{}

Functions

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 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 TranslateEmpty

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

TranslateEmpty if s is the empty value (type specific) TranslateEmpty returns replacement

Types

type InterfaceIsReferentialTransparentType

type InterfaceIsReferentialTransparentType bool

type NilIteratorValueType

type NilIteratorValueType struct{}

type PromiseReferentialTransparentI

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

Jump to

Keyboard shortcuts

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