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