diff options
| author | Andreas Grois <andi@grois.info> | 2023-12-02 13:04:27 +0100 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2023-12-02 13:11:49 +0100 |
| commit | b428712b5804e9efd66fff554204db2c1d669e37 (patch) | |
| tree | 55639772fff8b76b6d661e2037b45578d0d9adf8 /Main.lean | |
| parent | 24d7fab85b2eb1b7996fd0ceccdd0377f1ce087b (diff) | |
Day 2
Diffstat (limited to 'Main.lean')
| -rw-r--r-- | Main.lean | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,6 @@ import «Common» import «Day1» +import «Day2» open DayPart @@ -17,6 +18,8 @@ def try_run_day_part (day : Days) (part : Parts) (data : String) : IO String := match day, part with | ⟨1,_⟩, Parts.One => impl ⟨1,_⟩ Parts.One data | ⟨1,_⟩, Parts.Two => impl ⟨1,_⟩ Parts.Two data + | ⟨2,_⟩, Parts.One => impl ⟨2,_⟩ Parts.One data + | ⟨2,_⟩, Parts.Two => impl ⟨2,_⟩ Parts.Two data | _, _ => throw $ IO.userError "The requested combination of day/part has not been implemented yet." def main (parameters : List String): IO Unit := do |
