Skip to content

sonowz/advent-of-code-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code Scala 3 Solution

This solution aims to write elegant FP style code.

Note: I am a Haskell programmer who is learning Scala with this AoC.

  • Use enums and case classes for better readablity and more strict typecheck
  • Use immutable collections as much as possible
  • Use val and avoid var as much as possible
  • Prefer utilizing Scala base library over Cats

Instruction

# Runs code in year 2022, day 1 with input file stored in 'src/main/resources/' directory.
./run.sh 2022 01

About

Advent of code solutions with Scala 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published