diff --git a/2019/ruby/day_11.rb b/2019/ruby/day_11.rb index be15da5..7accfe2 100644 --- a/2019/ruby/day_11.rb +++ b/2019/ruby/day_11.rb @@ -35,7 +35,7 @@ t = Thread.new { when :down then [ 0, -1] when :left then [-1, 0] end - robot.panel = robot.panel.zip(delta).map {|a,b| a + b } + robot.panel = robot.panel.zip(delta).map(&:sum) end }