day03_path_direction: Translate instruction into directoin vector (x, y)

Description Usage Arguments

View source: R/day03.R

Description

R : (1, 0); U : (0, 1); L : (-1, 0); D : (0, -1)

Usage

1
day03_path_direction(instruction)

Arguments

instruction

string that defines direction as a first character and number of steps as rest


EvgenyPetrovsky/aoc2019 documentation built on Jan. 9, 2020, 2:40 a.m.