Skip to content

Instantly share code, notes, and snippets.

@erdeszt
erdeszt / Direct.scala
Last active May 10, 2024 06:59
Direct style scala effect tracking
package direct
import java.util.UUID
import scala.language.experimental.saferExceptions
import Contains.given
import izumi.reflect.macrortti.LightTypeTag
import izumi.reflect.{*, given}
import sttp.tapir.*
@erdeszt
erdeszt / 1_Solver.scala
Last active December 6, 2024 16:05
Advent of code "framework"
import scala.util.Using
trait Solver[Day <: Int: ValueOf, Part <: Int: ValueOf]:
/** Solves the `Part` of the solution for the `Day`
*
* @param input
* The lines of the input file
* @return
* The solution