additional cast from AoC
Some checks are pending
Publish Playground / build (push) Waiting to run
Publish Playground / deploy (push) Blocked by required conditions

This commit is contained in:
2025-12-26 13:02:27 -08:00
parent 9bbc7208d7
commit d19f39fa18

View File

@@ -26,6 +26,10 @@ instance ∀ n. Cast (Fin n) Nat where
cast FZ = Z
cast (FS x) = S (cast x)
instance n. Cast (Fin n) Int where
cast FZ = 0
cast (FS x) = 1 + (cast x)
instance k. Show (Fin k) where
show x = show {Nat} $ cast x