port aoc2023 day4
more stuff in Prelude, typechecking fixes, solving autos
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user