sln_2022_08
Copyright(c) Eric Mertens 2022
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2022/day/8

>>> :main + "30373\n25512\n65332\n33549\n35390\n"
21
8
Synopsis

Documentation

main :: IO () Source #

>>> :main
1690
535680

outToEdge Source #

Arguments

:: UArray Coord Char

array

-> Coord

starting coordinate

-> (Coord -> Coord)

coordinate step function

-> [Char]

list of elements out to the edge of the array

Return the list of elements in the array starting

sightLines Source #

Arguments

:: UArray Coord Char

array

-> Coord

starting coordinate

-> [[Char]]

list of trees viewed in each cardinal direction