From 68efbfcf09a3f4bf54117349bee20a1aab5914d8 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 9 Dec 2015 20:25:34 -0800 Subject: [PATCH] Day 7.2 --- day_07.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/day_07.rb b/day_07.rb index edab2d6..efc3208 100644 --- a/day_07.rb +++ b/day_07.rb @@ -37,6 +37,8 @@ DATA.read.scan(/(.+) -> (.+)/) do |input, output| BINDING[output] = Expr.new(op, inputs, output) end +BINDING["b"] = Expr.new(nil, ["3176"], "b") + puts BINDING["a"].reduced __END__