port aoc2023 day4

more stuff in Prelude, typechecking fixes, solving autos
This commit is contained in:
2024-11-30 10:27:06 -08:00
parent baeaf4295d
commit d5a4d6253f
10 changed files with 234 additions and 41 deletions

View File

@@ -6,7 +6,6 @@ import Node
pfunc repr : {a : U} -> a -> String := `(a,o) => ''+o`
pfunc jrepr : {a : U} -> a -> String := `(a,o) => JSON.stringify(o, null, ' ')`
pfunc trace : a. String -> a -> a := `(_, msg, a) => { console.log(msg,debugStr(_,a)); return a }`
maybe : a b. b (a b) Maybe a b
maybe def f Nothing = def