advent_of_code_2024::day_7

Function parse_equation

source
fn parse_equation(line: &str) -> Equation
Expand description

Parse a line of input as an Equation. The first operator is applied to the first two numbers, so the first number in the list is used to initialise the running total.