Skip to content

Files

Latest commit

95edd5e · Dec 30, 2021

History

History

day01

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 29, 2021
Dec 30, 2021
Dec 29, 2021

Day 01: Sonar Sweep

The "Sonar Sweep" problem is about finding increments in a list of numbers.

Learnings and resources

I wanted to implement a solution that reads the puzzle input from a file. Since Haskell is a functional language, the usual pure functions do not allow accessing files and similar resources functions. The following guide helped me to understand IO Monads, a concept that allows accessing external resources through "IO actions":

File structure