diff options
author | Brian Chu <brianmchu42@gmail.com> | 2022-11-30 23:02:09 -0800 |
---|---|---|
committer | Brian Chu <brianmchu42@gmail.com> | 2022-11-30 23:02:09 -0800 |
commit | 217582a34d4c47c5b0bc6e137e6019f2485b741f (patch) | |
tree | e90559dd3f087b8b80b0067c45b576c15f3a30fb /Program.fs | |
download | AdventOfCode2022-217582a34d4c47c5b0bc6e137e6019f2485b741f.tar.gz |
template scaffolding and day1 solution
Diffstat (limited to 'Program.fs')
-rw-r--r-- | Program.fs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Program.fs b/Program.fs new file mode 100644 index 0000000..a16ec03 --- /dev/null +++ b/Program.fs @@ -0,0 +1,14 @@ +open Solutions +exception NotImplementedYet of string + +let args = System.Environment.GetCommandLineArgs() + +assert (Array.length args = 3) + +let day, part = int args[1], int args[2] + +match (day, part) with +| (1, 1) -> Day1.part1 () |> printf "%A\n" +| (1, 2) -> Day1.part2 () |> printf "%A\n" +| _ -> raise (NotImplementedYet("not implemented yet")) +|> printf "%A\n" \ No newline at end of file |