This solution aims to write elegant FP style code.
Note: I am a Haskell programmer who is learning Scala with this AoC.
- Use
enums andcase classes for better readablity and more strict typecheck - Use immutable collections as much as possible
- Use
valand avoidvaras 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