Function advent_of_code_2022::day_9::apply_motion
source · fn apply_motion(
(x, y): (isize, isize),
(direction, distance): (Direction, usize)
) -> Vec<(isize, isize)>
Expand description
Map a specification of a move of the head of the rope to the list of positions it follows