mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-05 23:14:54 -06:00
remove commented out code
This commit is contained in:
@@ -40,11 +40,8 @@ defmodule RobotSimulator do
|
||||
%Robot{position: position, direction: direction} = robot,
|
||||
<<head::bytes-size(1)>> <> tail
|
||||
) do
|
||||
# {head, tail} = String.split_at(instructions, 1)
|
||||
|
||||
case head do
|
||||
"A" ->
|
||||
# Map.get_and_update!(robot, :position, &{&1, get_change(&1, robot.direction)})
|
||||
simulate(%Robot{robot | position: get_change(position, direction)}, tail)
|
||||
|
||||
"L" ->
|
||||
|
||||
Reference in New Issue
Block a user