Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> (u32, u32)
Expand description

Converts input lines into a pair of Point and integer amount, to indicate direction and magnitude respectively. Then determines the maximum extent of the head so that we can allocate a two-dimensional grid.