fn count_steps(
    start: &str,
    terminal_predicate: fn(_: &str) -> bool,
    instructions: &Vec<Instruction>,
    network: &HashMap<&'_ str, (&'_ str, &'_ str)>
) -> usize
Expand description

Follow the the list of instructions in a cycle until a destination node is reached