powered by
Reverses and inverts a sequence of operations. "1" (shift left) becomes "2" (shift right) and vice versa. "3" (reverse) stays the same.
invert_path(path)
Character vector of inverted operations in reverse order
Character vector of operations
invert_path(c("1", "3", "2")) invert_path(c("1", "1", "3"))
Run the code above in your browser using DataLab