diff options
author | JJ | 2025-01-02 02:11:37 +0000 |
---|---|---|
committer | JJ | 2025-01-02 02:11:37 +0000 |
commit | 830b65d349ec148df049522a1875a8e3d5ce7697 (patch) | |
tree | a73509543bce34fc95ae1f4e3b6a85be11fa2dad /2024/lean/Main.lean | |
parent | 0e8d6bbf3e55e7506e1e92b5292833b1f3907d06 (diff) |
january adventing... omg...
Diffstat (limited to '2024/lean/Main.lean')
-rw-r--r-- | 2024/lean/Main.lean | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2024/lean/Main.lean b/2024/lean/Main.lean new file mode 100644 index 0000000..cb319c4 --- /dev/null +++ b/2024/lean/Main.lean @@ -0,0 +1,12 @@ +import Solutions.Day01 + +def main (args : List String) : IO Unit := do + let usage := "usage: lake exe aoc Day⟨num⟩" + match args with + | ["--help"] | ["help"] => + IO.println usage + | [day] => + let input <- IO.FS.readFile s!"../input/{day.toLower}.txt" + IO.println <| solution input + | _ => + IO.println usage |