day09

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser() *participle.Parser[Report]

Types

type Report

type Report struct {
	ValueHistories []ValueHistory `parser:"@@*"`
}

func (*Report) Part1

func (report *Report) Part1() (result int)

func (*Report) Part2

func (report *Report) Part2() (result int)

type ValueHistory

type ValueHistory struct {
	Readings []int `parser:"@Int+ (EOL | EOF)"`
}

Jump to

Keyboard shortcuts

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