Skip to content

Instantly share code, notes, and snippets.

View gvolpe's full-sized avatar
馃
https://leanpub.com/u/gvolpe

Gabriel Volpe gvolpe

馃
https://leanpub.com/u/gvolpe
View GitHub Profile
@johnhungerford
johnhungerford / TicTacToe.Scala
Last active March 26, 2023 11:13
Type level tic tac toe using match types
sealed trait Bool
object Bool:
sealed trait True extends Bool
sealed trait False extends Bool
sealed trait Nat
object Nat:
sealed trait _0 extends Nat
sealed trait Succ[N <: Nat] extends Nat