fromiter

package
v2.13.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainFirstIOK

func ChainFirstIOK[A, B, HKTA, HKTB any, GIOB ~func(yield func(B) bool)](
	mchain func(func(A) HKTA) func(HKTA) HKTA,
	mmap func(func(B) A) func(HKTB) HKTA,
	fromio func(GIOB) HKTB,
	f func(A) GIOB) func(HKTA) HKTA

func ChainIOK

func ChainIOK[GR ~func(yield func(B) bool), A, B, HKTA, HKTB any](
	mchain func(func(A) HKTB) func(HKTA) HKTB,
	fromio func(GR) HKTB,
	f func(A) GR) func(HKTA) HKTB

func MonadChainFirstIOK

func MonadChainFirstIOK[A, B, HKTA, HKTB any, GIOB ~func(yield func(B) bool)](
	mchain func(HKTA, func(A) HKTA) HKTA,
	mmap func(HKTB, func(B) A) HKTA,
	fromio func(GIOB) HKTB,
	first HKTA, f func(A) GIOB) HKTA

func MonadChainIOK

func MonadChainIOK[GR ~func(yield func(B) bool), A, B, HKTA, HKTB any](
	mchain func(HKTA, func(A) HKTB) HKTB,
	fromio func(GR) HKTB,
	first HKTA, f func(A) GR) HKTB

Types

type FromIter

type FromIter[A, GA ~func(yield func(A) bool), HKTA any] interface {
	// FromIO converts an IO computation into the target monadic type.
	FromIter(GA) HKTA
}

FromIO represents a type that can be constructed from an IO computation.

This interface provides a way to lift IO computations into other monadic contexts, enabling interoperability between IO and other effect types.

Type Parameters:

  • A: The value type produced by the IO computation
  • GA: The IO type (constrained to func() A)
  • HKTA: The target higher-kinded type

Jump to

Keyboard shortcuts

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