util

package
v0.0.0-...-c8c2d0a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(f func(int) int, c <-chan int) <-chan int

func CmdPkgPath

func CmdPkgPath() (string, error)

func GroupedLines

func GroupedLines(input <-chan string) <-chan []string

Lines by slices based on whitespace grouping

func LinesToIntSlice

func LinesToIntSlice(input <-chan string) (lines []int)

func LinesToSingleCsvToStrSlice

func LinesToSingleCsvToStrSlice(input <-chan string) (csv []string)

func LinesToStrLine

func LinesToStrLine(input <-chan string) string

func LinesToStrSlice

func LinesToStrSlice(input <-chan string) (lines []string)

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func MustAtoI

func MustAtoI(a string) int

func NewSet

func NewSet() *set

func PkgPath

func PkgPath(day int) (string, error)

func Reduce

func Reduce(f func(int, int) int, c <-chan int) (r int)

func Sign

func Sign(a int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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