mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
![zzak](/assets/img/avatar_default.png)
https://github.com/ruby/ruby/pull/393 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7 lines
No EOL
217 B
Ruby
7 lines
No EOL
217 B
Ruby
require_relative 'other-lang/ack'
|
|
|
|
def the_answer_to_life_the_universe_and_everything
|
|
(ack(3,7).to_s.split(//).inject(0){|s,x| s+x.to_i}.to_s + "2" ).to_i
|
|
end
|
|
|
|
answer = the_answer_to_life_the_universe_and_everything |