AoC 2025 - Day 1

This commit is contained in:
2025-12-01 08:46:49 -08:00
parent aa0a12f402
commit 940d1ae8b1
8 changed files with 128 additions and 0 deletions

7
aoc2025/Node.newt Normal file
View File

@@ -0,0 +1,7 @@
module Node
import Prelude
pfunc fs : JSObject := `require('fs')`
pfunc getArgs : List String := `arrayToList(String, process.argv)`
pfunc readFile uses (MkIORes) : (fn : String) -> IO String := `(fn) => (w) => Prelude_MkIORes(require('fs').readFileSync(fn, 'utf8'), w)`