commit c865c4b63b4723de63e31efbfaf877ce38987274 parent 235c28b62909ff016963880a7034ac465ee440df Author: Eamon Caddigan <eamon.caddigan@gmail.com> Date: Thu, 2 Dec 2021 14:13:20 -0500 Adding an editorializing comment Diffstat:
M | day02_part2.py | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/day02_part2.py b/day02_part2.py @@ -54,6 +54,14 @@ def calculate_puzzle_solution(running_state_df): def solve_puzzle(): """Return the numeric solution to the puzzle""" + # Wouldn't it be lovely if this instead looked like: + # return get_puzzle_input(2) |> + # convert_input_to_df() |> + # split_command_parts() |> + # convert_commands_to_offsets() |> + # find_submarine_state() |> + # calculate_puzzle_solution() + # Python needs a pipe operator! return calculate_puzzle_solution( find_submarine_state( convert_commands_to_offsets(