source

package
v0.0.0-...-d8d5533 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReaderSource func(io.Reader) IO[[]string] = Compose(
	bufio.NewScanner,
	ScannerSource,
)
View Source
var ScannerSource func(*bufio.Scanner) IO[[]string] = Compose(
	ScannerToIter,
	IterSource,
)
View Source
var StdinSource IO[[]string] = ReaderSource(os.Stdin)

Functions

func IterSource

func IterSource(i iter.Seq[string]) IO[[]string]

func ScannerToIter

func ScannerToIter(s *bufio.Scanner) iter.Seq[string]

Types

type Source

type Source IO[[]string]

Jump to

Keyboard shortcuts

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