Skip to main content
1 of 2
Dennis
  • 210.6k
  • 41
  • 370
  • 825

GolfScript by Ilmari Karonen

:a;
:b;

"#{
    def lookup(name)
        eval('$_' + ($var_lookup[name] - 3).to_s).val
    end

    gpush Gint.new(lookup('a') + lookup('b'))
}";

I have no idea why I need the - 3, but I do.

Try it online!

Dennis
  • 210.6k
  • 41
  • 370
  • 825