This solution aims to write elegant FP style code.
Note: I am a Haskell programmer who is learning Scala with this AoC.
- Use
enum
s andcase class
es for better readablity and more strict typecheck - Use immutable collections as much as possible
- Use
val
and avoidvar
as much as possible - Prefer utilizing Scala base library over Cats
# Runs code in year 2022, day 1 with input file stored in 'src/main/resources/' directory.
./run.sh 2022 01