challenge

package
v0.0.0-...-bcfcd92 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputFile

func InputFile() io.Reader

InputFile returns an io.Reader for the file pointed at by the --input flag. If the flag is not specified, it looks for a file named "input.txt" in the same package as the caller.

func Ints

func Ints(r io.Reader) iter.Seq[int]

Ints returns an iter.Seq[int] over all lines in the provided io.Reader, converting each line to an int. This method panics if conversion of any line fails.

func Lines

func Lines(r io.Reader) iter.Seq[string]

Lines returns an iter.Seq[string] over all lines in the provided io.Reader.

func Sections

func Sections(r io.Reader) iter.Seq[string]

Sections returns an iter.Seq[string] over all blocks of lines in the provided io.Reader. Blocks of lines have at least one extra newline separating them.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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